summaryrefslogtreecommitdiffstats
path: root/tools/checkwps
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-02 00:09:35 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-02 00:09:35 +0000
commit7c2ecc338a035719a2242a724844e684948209ec (patch)
treed47cf74d694a51b6dd21eac2f0589f3b65537ff5 /tools/checkwps
parentee7f12644c425063865ae5f61eba3d0e66ddc869 (diff)
downloadrockbox-7c2ecc338a035719a2242a724844e684948209ec.tar.gz
rockbox-7c2ecc338a035719a2242a724844e684948209ec.tar.bz2
rockbox-7c2ecc338a035719a2242a724844e684948209ec.zip
Make checkwps compile scripts directory-independent
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19900 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/checkwps')
-rwxr-xr-xtools/checkwps/buildall.sh8
-rwxr-xr-xtools/checkwps/cleanall.sh6
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
)