Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (19 sloc) 410 Bytes
#!/bin/sh
# crontab:
# */1 * * * * /home/gray/build/kastaneda.kiev.ua/build.sh
# webhook:
# <?php echo touch('/home/gray/build/kastaneda.kiev.ua/_build') ? 'OK' : 'Error';
FLAG_START=_build
FLAG_LOCK=_build_lock
cd `dirname $0`
if [ -f $FLAG_START ]
then
if [ ! -f $FLAG_LOCK ]
then
touch $FLAG_LOCK
rm $FLAG_START
git pull && \
make upload && \
rm $FLAG_LOCK
fi
fi