summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-09-14 01:15:18 +0000
committerChris Johns <chrisj@rtems.org>2017-09-14 01:15:18 +0000
commit389fec0f12d2de8baef8778abe8613465c977cb2 (patch)
treeea2bf3104523d5bb6b3479b4b0eef6fe39aad948
parentc41ecef0f9f8d9b7e70bc411327f693ba85d6596 (diff)
The new files are part of the script workspace.
-rwxr-xr-xdocs/builder/rtems-docs-publish12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/builder/rtems-docs-publish b/docs/builder/rtems-docs-publish
index d8a5f30..a97876c 100755
--- a/docs/builder/rtems-docs-publish
+++ b/docs/builder/rtems-docs-publish
@@ -20,6 +20,16 @@ cp=/bin/cp
rm=/bin/rm
#
+# We run where the script is located.
+#
+cd $(dirname $0)
+
+#
+# Top directory
+#
+top=$PWD
+
+#
# The current directory.
#
current=/data/www/docs.rtems.org/branches
@@ -27,7 +37,7 @@ current=/data/www/docs.rtems.org/branches
#
# The new docs
#
-new=/usr/home/chrisj/docs/latest/new
+new=${top}/latest/new
#
# If there is a new directory we have something to publsh.