Change to test script to make it easier to run testv/teste etc

v0.27.3
Robin Mills 13 years ago
parent 3df242e126
commit 0b607f9981

@ -1,15 +1,16 @@
#!/bin/bash #!/bin/bash
msvc=$1 msvc=$1
dryrun=$2 test=$2
home=$(dirname $0)
if [ -z $msvc ]; then if [ -z $msvc ]; then
echo usage: $0 \<path-to-msvc-bin\> [dryrun] echo usage: $0 \<path-to-msvc-bin\> [test]
exit exit
fi fi
if [ ! -z $dryrun ]; then if [ -z $test ]; then
dryrun=echo test=tests
fi fi
for d in $(find "$msvc" -name exiv2.exe -exec dirname {} ";"); do for d in $(find "$msvc" -name exiv2.exe -exec dirname {} ";"); do
@ -22,7 +23,10 @@ for d in $(find "$msvc" -name exiv2.exe -exec dirname {} ";"); do
echo $bar $d $bar echo $bar $d $bar
echo $bar $(cygpath -aw "$msvc") $bar echo $bar $(cygpath -aw "$msvc") $bar
echo $Bar echo $Bar
$dryrun make test (
cd "$home/.."
make $test
)
done done
# That's all Folks! # That's all Folks!

Loading…
Cancel
Save