1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Don't use a lockfile, the script will be called with lockf -t0 instead to

avoid problems with stale lockfiles after a reboot.
This commit is contained in:
Kris Kennaway 2005-12-11 04:35:44 +00:00
parent 1ace35e972
commit 2f084309ba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150851
2 changed files with 0 additions and 16 deletions

View File

@ -27,17 +27,10 @@ arch=$(echo ${buildlogdir} | sed -e "s,${rpb}/,," | cut -f 1 -d /)
# create a name for the tempfile
of=.index.html
# delete lockfiles if more than a day old
find $of .lock -mmin +60 -delete 2>/dev/null
# exit if another instance of this program is running
if [ -f $of -o -f .lock ]; then exit; fi
# if there are no new logfiles, there is nothing to do here.
if [ -e .stamp -a $(echo $(find -f $buildlogdir -maxdepth 1 -newer .stamp -type f -name '*.log' 2>/dev/null | wc -l)) = "0" ]; then exit; fi
touch .stamp
touch .lock
# get the list of buildlogs.
set $buildlogdir/*.log
@ -307,7 +300,3 @@ done
echo $maints | sed -e 's/ /\
/g' | sort -fu > maintainers
# now remove the lockfile for this invocation, and exit
rm .lock
# echo 'processlogs: at '`date`', end'

View File

@ -2,11 +2,6 @@
of=extras.html.new
# delete .new file if it is more than a day old
find $of -mtime +1 -delete 2>/dev/null
if [ -f $of ]; then exit; fi
if [ -e .stamp -a $(echo $(find . -newer .stamp -type f -name '*.log' 2>/dev/null | wc -l)) = "0" ]; then exit; fi
echo "<html><head><title>List of files and directories that do not match their mtree description</title>" >$of