Debian Codegraph @

debian/pvpgn-support-installer

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Downloads pvpgn support files needed to run the daemon from pvpgn.berlios.de.
4 #
5 # (C) 2005 Radu Spineanu <[email protected]>
6 # You may freely distribute this file under the terms of the GNU General
7 # Public License, version 2 or later.
8
9 set -e
10
11 DBASE="https://raw.githubusercontent.com/pvpgn/pvpgn-server/master/files/"
12 FILES="
13 ad000001.smk
14 ad000002.mng
15 ad000002.smk
16 icons.bni
17 icons_STAR.bni
18 icons-WAR3.bni
19 IX86ExtraWork.mpq
20 IX86ver1.mpq
21 newbie.save
22 PMACver1.mpq
23 ver-IX86-1.mpq
24 XMACver1.mpq
25 "
26
27 usagescip-shell shell shell-project 0.0.0 usage().()
28 {
29 echoscip-shell system . . echo. "usage: pvpgn-support-installer [options]"
30 echoscip-shell system . . echo. "options:
31 -u -- uninstall
32 -h -- this message"
33 }
34
35 # look through input arguments
36 until [scip-shell system . . `[`. -z "$1" ]; do
37 case $1 in
38 "-u")
39 UNINSTALL=1
40 ;;
41 "-h")
42 usagescip-shell shell shell-project 0.0.0 usage().
43 exit
44 ;;
45 * )
46 usagescip-shell shell shell-project 0.0.0 usage().
47 exit
48 ;;
49 esac
50 shift
51 done
52
53 if [scip-shell system . . `[`. "$UNINSTALL" ]; then
54 echoscip-shell system . . echo. "Removing support files from /var/lib/pvpgn/files ..."
55 for i in $FILES; do
56 rmscip-shell system . . rm. -vf /var/lib/pvpgn/files/"$i"
57 done
58 exit 0
59 fi
60
61
62 set -u
63
64 cd "/var/lib/pvpgn/filesscip-shell filesystem . . `/var/lib/pvpgn/files`."
65 for F in ${FILES}; do
66 wget --continue "${DBASE}$F"
67 done
68
69 exit 0