summaryrefslogtreecommitdiff
path: root/doxygen/builder/rtems-doxygen-build-cron
blob: a2aab94bd21c97a1b851eae55fc26cd751adca41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh
#
# RTEMS Documentation Project
#
# Copyright 2017 Chris Johns <chrisj@rtems.org>
# All rights reserved
#
# Public domain
#

#
# Exit on error.
#
set -e

#
# We run where the script is located.
#
cd $(dirname $0)

#
# 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