]> jfr.im git - irc/unrealircd/unrealircd.git/blob - update
- Undid that. Version is now 3.3-willneverbereleased.
[irc/unrealircd/unrealircd.git] / update
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
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
16 CURRENT_VERSION="Unreal3.2-beta12"
17 WHATYAWANT="wget"
18 clear
19 cat .UPDATE
20 cd src
21 rm -f update.sh
22
23 read $WHATYAWANT
24
25 if [ "$WHATYAWANT" == "wget" ] ; then
26 TMP=`which wget`
27 TMP2=`echo $TMP | cut -c1`
28
29 if [ "$TMP2" == "/" ] ; then
30 wget http://update.unrealircd.com/update.sh
31 else
32 echo "wget not found trying lynx"
33 lynx -source http://update.unrealircd.com/update.sh > update.sh
34 fi
35 else
36 lynx -source http://update.unrealircd.com/update.sh > update.sh
37 fi
38
39 chmod +x update.sh
40 export CURRENT_VERSION
41 ./update.sh $*
42 exit 1