From 7c2ecc338a035719a2242a724844e684948209ec Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Mon, 2 Feb 2009 00:09:35 +0000 Subject: Make checkwps compile scripts directory-independent git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19900 a1c6a512-1295-4272-9138-f99709370657 --- tools/checkwps/buildall.sh | 8 +++++--- tools/checkwps/cleanall.sh | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/checkwps/buildall.sh b/tools/checkwps/buildall.sh index 23fc7ff7f4..4a6f11a419 100755 --- a/tools/checkwps/buildall.sh +++ b/tools/checkwps/buildall.sh @@ -1,8 +1,10 @@ #!/bin/sh -cat targets.txt | ( +rootdir=`dirname $0` + +cat $rootdir/targets.txt | ( while read target model do - rm -f checkwps.$model - make MODEL=$model TARGET=$target checkwps + rm -f $rootdir/checkwps.$model + make -s -C $rootdir MODEL=$model TARGET=$target checkwps done ) diff --git a/tools/checkwps/cleanall.sh b/tools/checkwps/cleanall.sh index 6cd1a90676..8310878fd5 100755 --- a/tools/checkwps/cleanall.sh +++ b/tools/checkwps/cleanall.sh @@ -1,7 +1,9 @@ #!/bin/sh -cat targets.txt | ( +rootdir=`dirname $0` + +cat $rootdir/targets.txt | ( while read target model do - rm -f checkwps.$model + rm -f $rootdir/checkwps.$model done ) -- cgit v1.2.3