Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (14 sloc) 0.439 kB
#!/bin/bash
svn up ../boot/lock.txt
if test -n $(tail -n 2 ../boot/lock.txt | grep locked | awk '{print $1}'); then
cp ../boot/lock.txt locktmp.txt
echo " unlocked, "$(date) >> ../boot/lock.txt
cd ..
if svn commit -m "Release lock. $1"; then
echo OK: release lock succesful;
rm -f locktmp.txt;
else
echo FAIL: something went wrong;
mv -f locktmp.txt ../boot/lock.txt;
fi
else echo FAIL: project is not locked; fi
Jump to Line
Something went wrong with that request. Please try again.