-
Notifications
You must be signed in to change notification settings - Fork 2
/
launcher.sh
executable file
·42 lines (33 loc) · 956 Bytes
/
launcher.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/sh
var=$(zenity --width=50 --height=320 --list "start-RDF" "start-camera" "install" "update" "auto-config" "createlogs" "clean" --column="command" --text="Select action" --title="RDF")
if [ $var = "start-RDF" ]; then
./source/launch.sh
fi
if [ $var = "start-camera" ]; then
cheese -f
fi
if [ $var = "update" ]; then
./source/update.sh
notify-send "Update done"
fi
if [ $var = "auto-config" ]; then
./source/configure.sh
notify-send "Auto configuration done"
fi
if [ $var = "install" ]; then
./source/install.sh
./source/update.sh
./source/configure.sh
notify-send "Installation done, use start to launch the program"
fi
if [ $var = "createlogs" ]; then
./source/createlogs.sh
notify-send "Logs created, send envoyer.gz.tar to [email protected]"
fi
if [ $var = "clean" ]; then
rm rdf -f
rm logs -r -f
rm result* -f
rm envoyer* -f
notify-send "Repository cleaned"
fi