home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.lokigames.com
/
ftp.lokigames.com.zip
/
ftp.lokigames.com
/
updates
/
heroes3
/
heroes3-1.3.1a-cdrom-x86.run
next >
Wrap
Text File
|
2004-05-25
|
3MB
|
11,612 lines
#! /bin/sh
skip=177
# This script was generated using Makeself 1.5.5
CRCsum=822834373
MD5=00000000000000000000000000000000
label="Heroes of Might and Magic III 1.3.1a Update"
script=./update.sh
targetdir=heroes3-1.3.1a-cdrom-x86
scriptargs=""
keep=n
TMPROOT=${TMPDIR:=/tmp}
finish=true; xterm_loop=;
[ x"$1" = x-xwin ] && {
finish="echo Press Return to close this window...; read junk"; xterm_loop=1; shift 1;
}
if [ x"$1" = "x-help" -o x"$1" = "x--help" ]; then
cat << tac
1) Getting help or info about $0 :
$0 --help Print this message
$0 --info Print embedded info : title, default target directory, embedded script ...
$0 --lsm Print embedded lsm entry (or no LSM)
$0 --list Print the list of files in the archive
$0 --check Checks integrity of the archive
2) Running $0 :
$0 [options] [additional arguments to embedded script]
with following options (in that order)
--confirm Ask before running embedded script
--keep Do not erase target directory after running embedded script
--target NewDirectory Extract in NewDirectory
tac
exit 0;
fi
if [ x"$1" = "x-lsm" -o x"$1" = "x--lsm" ]; then
cat << EOF_LSM
no LSM
EOF_LSM
exit 0;
fi
if [ "$1" = "--info" ]; then
echo Identification: $label
echo Target directory: $targetdir
echo Uncompressed size: 4236 KB
echo Compression: gzip
echo Date of packaging: Fri Aug 31 12:01:13 PDT 2001
echo script run after extraction: $script $scriptargs
[ x"$keep" = xy ] && echo "directory $targetdir is permanent" || echo "$targetdir will be removed after extraction"
exit 0;
fi
if [ "$1" = "--list" ]; then
echo Target directory: $targetdir
tail +$skip $0 | gzip -cd | tar tvf -
exit 0;
fi
if [ "$1" = "--check" ]; then
sum1=`tail +6 $0 | cksum | sed -e 's/ /Z/' -e 's/ /Z/' | cut -dZ -f1`
[ $sum1 -ne $CRCsum ] && {
echo Error in checksums $sum1 $CRCsum
exit 2;
}
if [ $MD5 != "00000000000000000000000000000000" ]; then
# space separated list of directories
[ x"$GUESS_MD5_PATH" = "x" ] && GUESS_MD5_PATH="/usr/local/ssl/bin"
MD5_PATH=""
for a in $GUESS_MD5_PATH; do
if which $a/md5 >/dev/null 2>&1 ; then
MD5_PATH=$a;
fi
done
if [ -x $MD5_PATH/md5 ]; then
md5sum=`tail +6 $0 | $MD5_PATH/md5`;
[ $md5sum != $MD5 ] && {
echo Error in md5 sums $md5sum $MD5
exit 2
} || { echo check sums and md5 sums are ok; exit 0; }
fi
if [ ! -x $MD5_PATH/md5 ]; then
echo an embedded md5 sum of the archive exists but no md5 program was found in $GUESS_MD5_PATH
echo if you have md5 on your system, you should try :
echo env GUESS_MD5_PATH=\"FirstDirectory SecondDirectory ...\" $0 -check
fi
else
echo check sums are OK ; echo $0 does not contain embedded md5 sum ;
fi
exit 0;
fi
[ x"$finish" = x ] && finish=true
parsing=yes
x11=y
while [ x"$parsing" != x ]; do
case "$1" in
--confirm) verbose=y; shift;;
--keep) keep=y; shift;;
--nox11) x11=n; shift;;
--target) if [ x"$2" != x ]; then targetdir="$2"; keep=y; shift 2; fi;;
*) parsing="";;
esac
done
if [ "$x11" = "y" ]; then
if ! tty -s; then # Do we have a terminal?
if [ x"$DISPLAY" != x -a x"$xterm_loop" = x ]; then # No, but do we have X?
if xset q > /dev/null 2>&1; then # Check for valid DISPLAY variable
GUESS_XTERMS="xterm dtterm eterm Eterm rxvt kvt konsole aterm"
for a in $GUESS_XTERMS; do
if which $a >/dev/null 2>&1; then
XTERM=$a
break
fi
done
chmod a+x $0 || echo Please add execution rights on $0
if [ `echo "$0" | cut -c1` = / ]; then # Spawn a terminal!
exec $XTERM -title "$label" -e "$0" -xwin "$@"
else
exec $XTERM -title "$label" -e "./$0" -xwin "$@"
fi
fi
fi
fi
fi
if [ "$keep" = y ]; then echo "Creating directory $targetdir"; tmpdir=$targetdir;
else tmpdir="$TMPROOT/selfgz$$"; fi
mkdir $tmpdir || {
$echo 'Cannot create target directory' $tmpdir >&2
$echo 'you should perhaps try option -target OtherDirectory' >&2
eval $finish; exit 1;
}
location="`pwd`"
echo=echo; [ -x /usr/ucb/echo ] && echo=/usr/ucb/echo
if [ x$SETUP_NOCHECK != x1 ]; then
$echo -n Verifying archive integrity...
sum1=`tail +6 $0 | cksum | sed -e 's/ /Z/' -e 's/ /Z/' | cut -dZ -f1`
[ $sum1 -ne $CRCsum ] && {
$echo Error in check sums $sum1 $CRCsum
eval $finish; exit 2;
}
echo OK
fi
if [ $MD5 != \"00000000000000000000000000000000\" ]; then
# space separated list of directories
[ x$GUESS_MD5_PATH = x ] && GUESS_MD5_PATH=\"/usr/local/ssl/bin\"
MD5_PATH=\"\"
for a in $GUESS_MD5_PATH; do
if which $a/md5 >/dev/null 2>&1 ; then
MD5_PATH=$a;
fi
done
if [ -x $MD5_PATH/md5 ]; then
md5sum=`tail +6 $0 | $MD5_PATH/md5`;
[ $md5sum != $MD5 ] && {
$echo Error in md5 sums $md5sum $MD5
eval $finish; exit 2;
}
fi
fi
UnTAR() { tar xvf - || { echo Extraction failed. > /dev/tty; kill -15 $$; } ; }
$echo -n "Uncompressing $label"
cd $tmpdir ; res=3
[ "$keep" = y ] || trap 'echo Signal caught, cleaning up > /dev/tty; cd $TMPROOT; /bin/rm -rf $tmpdir; eval $finish; exit 15' 1 2 15
if (cd "$location"; tail +$skip $0; ) | gzip -cd | UnTAR | (while read a; do $echo -n .; done; echo; ); then
chown -Rf `id -u`.`id -g` .
res=0; if [ x"$script" != x ]; then
if [ x"$verbose" = xy ]; then
$echo "OK to execute: $script $scriptargs $* ? [Y/n] "
read yn
[ x"$yn" = x -o x"$yn" = xy -o x"$yn" = xY ] && { $script $scriptargs $*; res=$?; }
else
$script $scriptargs $*; res=$?
fi
[ $res != 0 ] && echo "The program returned an error code ($res)"
fi
[ "$keep" = y ] || { cd $TMPROOT; /bin/rm -rf $tmpdir; }
else
echo "Cannot decompress $0"; eval $finish; exit 1
fi
eval $finish; exit $res
END_OF_STUB
ï ∙▐Å;∞Xp╒¥_█r¼(èστô7@┴al┘≥w>▒e;5∙┌X▒!╚╥┌+G╓║╥«¥ö qÉE│┘3ñs0t┌fÜ╠P.e«3╫Báv∞`ç┬±}4ε┌┤g╕56C
⌐±âε oWû┤öRzs├Äσ▌}∩ ■∩≈ ■┐m¬»⌐█P∩öw╦▄▀∞ròöTVûÄöûòùû┴¥╕¬*J≡N»è▓▓B¬╩╩╦¬**½*\0φ¬*⌐ΣH ≈5\JT÷Eßα wö`°sΘBùΓ■▀]Σs«oIê⌐òl╢ë2╣Äl≡╡²ñ▒▒╤F■⌠┼√d┐H\╬2º╦g│mâQⁿR8@:ΘL½1┘7·║>Vv╤%▓(└H($u├mDï╛░_Φ┬2`Θ"8oδî]AIëêÑ0)Ç═ûæ6DVDÜ;>YÉP░%Γïàh!σ┌µδHTööPÇ┤ñCè$"╡Dz┘▓åαnXw*2ΘäëÉ╨uªNà╣[è∞B\■ê/*
Θ╙]RH┴YÆ⌠╣ê/É:`₧█ä░±╔Ç;ì─▄Æteæt°:I ΓkkVidRWP !╔┐KΘîªND}]åîB ê╚.aOM@]┬εá!sMáT½Ç&p├ε`(D┬ÆLó■ÿÇtïBÿ¬«ö¢
░│' uº2≈Ö╠αI╛ α(dp+4u/
í╬$≤%┐╘«ßk åé≥₧T«╕W0UΓ≈)Q*]M!_ñìbÅç$Ö║kg╚╖▄é0╬┴0ⁿ╔BlGòôªY╪-ú>pù¿_â│HKH@≤á!╠Vl╦úÿIG÷àX░ëÇÅå÷%┘≡Ö╛>▐┼ H╥k┴YìH}ü/Γ≡ X╘"l û`₧¿6°┬{¿\E0E¥╛Eikßóñ5çï╖R[%â┼XY'┤·öl"KñU àÿ¼ñe ░ÖòtqXΦN¥÷Kü$ªF╕╨Y"ΣMKN░+┌ @├+äçÇi{¬╨,╠╢5 πΩJJ─▄ ê·█µrA┤DPT┼>▌/*SP╒%%╗+KJHW0 HƒèLhåiS║m╒òn)▄l#¡ ╩IÜAw8QÆïΩ╤-ê(╔&╚~Æä ╡Dag0RÿeOQée!@#2`d┬T{KΘ:├)âF⌠├Éφ`╥ä(CHE┬LÆ¿a>"u4w]╙ª Æ,°⌐7óCεë╩Φ√,ó
ÉAhåeR Ä Θbù░╠α▒∞Ω∞Çß"≡AüH¥╚d)┌φ$⌡a⌠Q╔¿h▐~%pÿü]½å`[pUê.Ω¡αí{Ç{HèÇNHTjò╗}ôüô╨î▀ß█Cé¡]&/└òâ~_Γ$ÖÅA╚ Φ≤T@ 3(ô▓⌠$ôá¼vXxI╥.╙▄
XdêbX╔2pö$ºΘ┌jÇåi206└y<uδI╪-ƒ▓≤2'il%{$%i&@┼vJ┘trσ)ΦÉÉAm¬ô"q┬aY!.åWH¡T╡"╔()· ;kÜδ7╒55zδ¢Ç╝+æ┬εñ╥]«w}á├w=(▐ Nk;ü4â¿.σq#Éé7iéτ▌äÆ°║|┴C^Ç:}PzHc~1╪àéScQbkhc7C ╔Lf╩Ms4J ïÿy%j║≤⌠α▄üOé£ nΓE%Ç3úGº═V⌠'/¢{╙╞-5ε-ì╫Æ⌡¢╓5╧ªå-[kÜΩIπF╖≤╧¡╢5P╖ª╓ªæΣkæÖÖa21└Uè_╖δ
F┴~Φ▌B<dyàMöσ╬┼┼▌▌▌╬É┤+Hσqé┼É▌┐F╧N*9'UO╜p=¼!#T w╪∩ñl⌐zj6»`j2vi⌡}'zΘ68╜òZ1C(ä#┴╧$¡∩DzWñXrMÑßE),PWQò½╝¿óñ║¿╘U^rIç╖╩N'Æ~╢|fé\Nj££TÑä╟G▐│┼f╗┼jw╠I
ΩJR}(ÑäP!┐A«êRA╬DÉPïó 2▐.▀£∞Uñ£╩l▄7╫║ZéßΓ┐∙ú╝ñ¬¬Γs╧p%╧UeòÑ0τEG*╛9 }-÷ºº»Γ K÷wUUû|c »╫■╗½+ï ₧÷/-+⌐*½(sò┴tiY╒7÷ ;╪▀/àí¥√¬?║J>▀■Ñσ`÷*f√rLW╣½▓Γ¢∩_╟╡»~}CFFFû∙₧╔eqp?▀c▒û├╜áÿ╡RσüÖε2n¥º╨α»≈╛┘■▓q,Åú≤Gα²╚╥\+■[╦qíƒs▄,c▐╖√±k±G0Gpl▄ⁿσ│vc│ükµjV▀≥Φ°░} ╨«╖gs▒_┌±M╬╓¥√>·P¥╘ ▐⌠╠¢¼£╢c·╣ít_|≈v⌡w▒╤)~Kôÿ?`╖èÅÇ═^±─ïU»· ï╗p(φé╜b╓╪ì╟@NY=~┘╤çα⌐Å╖¿≡Aπ/╙æX5ºî₧└Γ≥▄╪⌐Γ╣@«U?|╫GÄdπbF¥╪1╘╫┼1₧°óN▓gsße▒SSΓm╣V╢z'¼■╘Ü╧└ùτ⌡hèU█aW╧¬gb┐╧Æ~╫╗ÿ)gWù╚Ekα_■╗fìû╫√¬╝ñwR^⌠ß ╟%8976`┴G.íⁿWL╧Z│fxMé^Å>⌠ó₧≥ ╘mlα╒╫,▄≥3╩F⌡}⌡ⁿ_╡╟▓≤}uï3╞s⌡╔╫qΩÖ>A▀~;î╩Æ∩╤vX{V+bºª┼äâπ<bhD╧|┼┬ì▀ê
┬A6vof6éñZCc╥┴τ■╒┬╙û?·Æ1:╒^╠FjÇ!êù5╠üƒΦ'p,iô²v≡└¡L»⌡∙└ï╤'√sτ Å- ]╜°E5èh╛┼±`ç÷ù├(█┤zΣ╦î3╬≡Z│╜I?╠╟τ|=tΦ ⌡²T/æ╪~√N╙N√'≥└íA=⌡VT~(ƒ╫KP)├êmR╔qî»┐>^#4ù@═¡k│╠z⌠U⌠ò@└x⌡ ÿ&└╨ú∩ñr▄?α8>