Require Gtk+-3.0 and first timid steps toward migration
[libprolooks.git] / run-demo.sh
blob8b0a84d401dddf62656b8672044ef15413baad0d
1 #!/bin/bash
2 DIR=demos
3 DEMOS=$(cd $DIR; echo *Demo)
5 if test "$*" == ""; then
6 RESULTS=$(zenity --height=450 --list --text="Please choose" --checklist --column Choose --column Demo --print-column 2 --separator=" " $(\
7 set -i N;\
8 N=1; \
9 for i in $DEMOS; \
10 do \
11 echo -n $N $i " ";\
12 N=$[N+1];\
13 done))
14 else
15 RESULTS="$*"
18 cd demos
19 for i in $RESULTS; do ../$DIR/$i & done
20 cd ..