summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.