]>
Commit | Line | Data |
---|---|---|
4a08c9ba | 1 | #!/bin/sh |
2 | # | |
3 | # Auto-update script for Unreal3.1 and higher | |
4 | # (C) Carsten V. Munk 2000 | |
5 | # | |
6 | # This script may not be modified without consent of the author, | |
7 | # or included in any package without permission from the author. | |
8 | # | |
9 | # NO WARRANTY IS INCLUDED | |
909bc035 BM |
10 | |
11 | # TEMP added by Syzop till the new updater thing is finished. | |
12 | echo "Please see doc/unreal32docs.html section 1.2 (\"Notes on upgrading between 3.2 versions\")." | |
13 | exit 1 | |
14 | # ORIGINAL CODE FOLLOWS: | |
15 | ||
0f9fd774 | 16 | CURRENT_VERSION="Unreal3.2-beta12" |
a4d4b20b | 17 | WHATYAWANT="wget" |
4a08c9ba | 18 | clear |
19 | cat .UPDATE | |
20 | cd src | |
dc5f3390 | 21 | rm -f update.sh |
ae3936ac | 22 | |
a4d4b20b | 23 | read $WHATYAWANT |
ae3936ac | 24 | |
25760a38 | 25 | if [ "$WHATYAWANT" == "wget" ] ; then |
87ca77c4 | 26 | TMP=`which wget` |
27 | TMP2=`echo $TMP | cut -c1` | |
ae3936ac | 28 | |
87ca77c4 | 29 | if [ "$TMP2" == "/" ] ; then |
13f23e47 | 30 | wget http://update.unrealircd.com/update.sh |
87ca77c4 | 31 | else |
32 | echo "wget not found trying lynx" | |
13f23e47 | 33 | lynx -source http://update.unrealircd.com/update.sh > update.sh |
87ca77c4 | 34 | fi |
a4d4b20b | 35 | else |
13f23e47 | 36 | lynx -source http://update.unrealircd.com/update.sh > update.sh |
a4d4b20b | 37 | fi |
38 | ||
4a08c9ba | 39 | chmod +x update.sh |
a4d4b20b | 40 | export CURRENT_VERSION |
ae3936ac | 41 | ./update.sh $* |
4a08c9ba | 42 | exit 1 |