diff options
author | kris <kris@FreeBSD.org> | 2005-12-11 12:35:44 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2005-12-11 12:35:44 +0800 |
commit | 0c384a5c8fd42813c8d87654148074d921e5253e (patch) | |
tree | 7c8795b35fc676fefbe1d18905a0877f38260f17 /Tools/portbuild | |
parent | 34cea54d64e9f74216926fc1cd10eb6d8f78cfe1 (diff) | |
download | freebsd-ports-gnome-0c384a5c8fd42813c8d87654148074d921e5253e.tar.gz freebsd-ports-gnome-0c384a5c8fd42813c8d87654148074d921e5253e.tar.zst freebsd-ports-gnome-0c384a5c8fd42813c8d87654148074d921e5253e.zip |
Don't use a lockfile, the script will be called with lockf -t0 instead to
avoid problems with stale lockfiles after a reboot.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/processlogs | 11 | ||||
-rwxr-xr-x | Tools/portbuild/scripts/processlogs2 | 5 |
2 files changed, 0 insertions, 16 deletions
diff --git a/Tools/portbuild/scripts/processlogs b/Tools/portbuild/scripts/processlogs index 2d2f9aeccf22..ec819fc14e70 100755 --- a/Tools/portbuild/scripts/processlogs +++ b/Tools/portbuild/scripts/processlogs @@ -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' diff --git a/Tools/portbuild/scripts/processlogs2 b/Tools/portbuild/scripts/processlogs2 index 3fb5948b81ea..ce9a59c10fb9 100755 --- a/Tools/portbuild/scripts/processlogs2 +++ b/Tools/portbuild/scripts/processlogs2 @@ -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 |