-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathzinstall.sh
executable file
·64 lines (51 loc) · 1.57 KB
/
zinstall.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
#
# graphical aid, using zenity, to configure and build NEMO
#
if ! [ -x "$(command -v zenity)" ]; then
echo 'Error: zenity is not installed.' >&2
exit 1
fi
options=$(zenity --list --checklist \
--title="Choose the configure and build options for NEMO" \
--separator=, \
--column="Option" --column "what" --column="Description" \
FALSE enable-debug "Debugging enables" \
FALSE disable-fortran "Disable footran" \
FALSE with-csh "no csh" \
FALSE disable-shared " on a mac?" \
FALSE enable-clang "clang compiler instead of gcc" \
FALSE enable-single "single precision" \
TRUE build1 "do this" \
TRUE build2 "do this" \
TRUE build3 "do this" \
FALSE build4 "do this" \
TRUE check "do this" \
TRUE bench5 "do this")
echo $options
run=my_zinstall.sh
echo "# $run : an install file for NEMO as created by $0" > $run
echo "./configure" >> $run
echo "make build1" >> $run
echo "make build2" >> $run
echo "make build3" >> $run
echo "make build4" >> $run
echo "make check" >> $run
echo "make bench5" >> $run
zenity --text-info \
--title="Order of commands for installing NEMO" \
--filename=$run \
--checkbox="Go ahead and run this install"
case $? in
0) echo "Starting the installation"
;;
1) echo "Stop"
exit 0
;;
-1)
echo "Unexpected error"
;;
esac
chmod +x $run
echo "Not quite ready to do this automagically...."
echo "./$run"