* care about broken vala 0.7.0
[libprolooks.git] / run-demo.sh
blob527ed9a37cd82a90a5704216665ea22f73c89d7b
1 #!/bin/bash
2 export LD_LIBRARY_PATH=$PWD/build/default/prolooks/
3 DIR=build/default/prolooks
4 DEMOS=$(cd $DIR; echo *-demo)
6 if test "$*" == ""; then
7 RESULTS=$(zenity --height=450 --list --text="Please choose" --checklist --column Choose --column Demo --print-column 2 --separator=" " $(\
8 set -i N;\
9 N=1; \
10 for i in $DEMOS; \
11 do \
12 echo -n $N $i " ";\
13 N=$[N+1];\
14 done))
15 else
16 RESULTS="$*"
19 cd prolooks
20 for i in $RESULTS; do ../$DIR/$i & done
21 cd ..