Module: tools Branch: master Commit: 611eee104fd0e1c403f3e2fb4f6cd6de7f3b03e4 URL: http://source.winehq.org/git/tools.git/?a=commit;h=611eee104fd0e1c403f3e2fb4...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jun 5 21:11:54 2008 +0200
winetest: Don't rely on the tools being present in the home page directory.
---
winetest/winetest.cron | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/winetest/winetest.cron b/winetest/winetest.cron index da41a7c..09edd1a 100755 --- a/winetest/winetest.cron +++ b/winetest/winetest.cron @@ -3,14 +3,18 @@ # Cron job for generating winetest reports. Use it like # */5 * * * * apache winetest.cron
+tools=/home/winehq/opt/git-tools/winetest +workdir=/home/winehq/opt/winetest lock=/tmp/winetest.lock + if [ ! -f $lock ]; then touch $lock - while perl dissect; [ $? -eq 0 -o $? -eq 1 ]; do true; done - while perl gather; do true; done - perl build-index + cd $workdir + while $tools/dissect; [ $? -eq 0 -o $? -eq 1 ]; do true; done + while $tools/gather; do true; done + $tools/build-index
- # and archive 6-month old results + # archive 6-month old results (cd old-data && for i in `find . -maxdepth 1 -mtime +180 -type d -print` do tar cfj $i.tar.bz2 $i && rm -rf $i