File: setup

package info (click to toggle)
webcpp 0.8.4-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,588 kB
  • ctags: 590
  • sloc: sh: 10,801; cpp: 2,557; perl: 1,882; makefile: 300; xml: 13
file content (40 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

function installwebcpp {

 ./configure && make && make install || exit 1
 exit 0
}

echo "This will compile Web C Plus Plus and run the installer."
echo "GNU Compiler Collection (gcc) 3.0 or higher is required"
echo "to compile it. Try \`/usr/sbin/gcc_select 3\` command if"
echo "both gcc 2.9.x and 3.x coexist on the same system."
echo ""
echo "You must also be root to install webcpp."
echo ""

YESNO=""

while [ "$YESNO" != "n" ]; do

 echo -n "Are you ready to continue? (Y/N) "
 read YESNO

 if [ "$YESNO" = "Y" ]; then
  installwebcpp
 fi

 if [ "$YESNO" = "y" ]; then
  installwebcpp
 fi

 if [ "$YESNO" = "N" ]; then
  echo "Aborting installation..."
  exit 1
 fi

done

echo "Aborting installation..."
exit 1