]> jfr.im git - irc/unrealircd/unrealircd.git/blame - update
Create branch unreal33.
[irc/unrealircd/unrealircd.git] / update
CommitLineData
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.
12echo "Please see doc/unreal32docs.html section 1.2 (\"Notes on upgrading between 3.2 versions\")."
13exit 1
14# ORIGINAL CODE FOLLOWS:
15
0f9fd774 16CURRENT_VERSION="Unreal3.2-beta12"
a4d4b20b 17WHATYAWANT="wget"
4a08c9ba 18clear
19cat .UPDATE
20cd src
dc5f3390 21rm -f update.sh
ae3936ac 22
a4d4b20b 23read $WHATYAWANT
ae3936ac 24
25760a38 25if [ "$WHATYAWANT" == "wget" ] ; then
87ca77c4 26TMP=`which wget`
27TMP2=`echo $TMP | cut -c1`
ae3936ac 28
87ca77c4 29if [ "$TMP2" == "/" ] ; then
13f23e47 30 wget http://update.unrealircd.com/update.sh
87ca77c4 31else
32 echo "wget not found trying lynx"
13f23e47 33 lynx -source http://update.unrealircd.com/update.sh > update.sh
87ca77c4 34fi
a4d4b20b 35else
13f23e47 36 lynx -source http://update.unrealircd.com/update.sh > update.sh
a4d4b20b 37fi
38
4a08c9ba 39chmod +x update.sh
a4d4b20b 40export CURRENT_VERSION
ae3936ac 41./update.sh $*
4a08c9ba 42exit 1