summaryrefslogtreecommitdiff
path: root/doxygen/builder/rtems-doxygen-build-cron
diff options
context:
space:
mode:
Diffstat (limited to 'doxygen/builder/rtems-doxygen-build-cron')
-rwxr-xr-xdoxygen/builder/rtems-doxygen-build-cron15
1 files changed, 14 insertions, 1 deletions
diff --git a/doxygen/builder/rtems-doxygen-build-cron b/doxygen/builder/rtems-doxygen-build-cron
index f49425a..a2aab94 100755
--- a/doxygen/builder/rtems-doxygen-build-cron
+++ b/doxygen/builder/rtems-doxygen-build-cron
@@ -18,6 +18,19 @@ set -e
#
cd $(dirname $0)
-./rtems-doxygen-upload
+#
+# The lock file.
+#
+LOCK=.cron-lock
+
+#
+# Trap to remove the lock file/
+#
+trap "rm -f ${LOCK}" EXIT
+
+if [ ! -f .cron-lock ]; then
+ touch ${LOCK}
+ ./rtems-doxygen-upload
+fi
exit 0