diff options
Diffstat (limited to 'doxygen/builder/rtems-doxygen-build-cron')
-rwxr-xr-x | doxygen/builder/rtems-doxygen-build-cron | 15 |
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 |