-
Notifications
You must be signed in to change notification settings - Fork 3
/
sc3u-2.0a-x86.run.patch
72 lines (72 loc) · 2.38 KB
/
sc3u-2.0a-x86.run.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- sc3u-2.0a-x86.run 2016-09-05 07:30:59.000000000 +0200
+++ sc3u-2.0a-x86.run 2017-11-15 12:28:02.635226616 +0100
@@ -1,10 +1,14 @@
#! /bin/sh
-skip=176
+skip=180
# This script was generated using Makeself 1.5.4
-CRCsum=2069455402
+CRCsum=1151330528
MD5=00000000000000000000000000000000
label="SimCity 3000 Unlimited 2.0a Update"
-script=./update.sh
+if [ `uname -m` == "x86_64" ]; then
+ script="linux32 ./update.sh"
+else
+ script=./update.sh
+fi
targetdir=sc3u-2.0a-x86
scriptargs=""
keep=n
@@ -48,11 +52,11 @@
fi
if [ "$1" = "--list" ]; then
echo Target directory: $targetdir
- tail +$skip $0 | gzip -cd | tar tvf -
+ tail -n +$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=`tail -n +6 $0 | cksum | sed -e 's/ /Z/' -e 's/ /Z/' | cut -dZ -f1`
[ $sum1 -ne $CRCsum ] && {
echo Error in checksums $sum1 $CRCsum
exit 2;
@@ -67,7 +71,7 @@
fi
done
if [ -x $MD5_PATH/md5 ]; then
- md5sum=`tail +6 $0 | $MD5_PATH/md5`;
+ md5sum=`tail -n +6 $0 | $MD5_PATH/md5`;
[ $md5sum != $MD5 ] && {
echo Error in md5 sums $md5sum $MD5
exit 2;
@@ -126,7 +130,7 @@
location=`pwd`
echo=echo; [ -x /usr/ucb/echo ] && echo=/usr/ucb/echo
$echo -n Verifying archive integrity...
-sum1=`tail +6 $0 | cksum | sed -e 's/ /Z/' -e 's/ /Z/' | cut -dZ -f1`
+sum1=`tail -n +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;
@@ -142,7 +146,7 @@
fi
done
if [ -x $MD5_PATH/md5 ]; then
- md5sum=`tail +6 $0 | $MD5_PATH/md5`;
+ md5sum=`tail -n +6 $0 | $MD5_PATH/md5`;
[ $md5sum != $MD5 ] && {
$echo Error in md5 sums $md5sum $MD5
eval $finish; exit 2;
@@ -151,8 +155,8 @@
fi
$echo -n "Uncompressing $label"
cd $tmpdir
-[ "$keep" = y ] || trap 'cd /tmp; /bin/rm -rf $tmpdir; exit $res'
-if ( (cd $location; tail +$skip $0; ) | gzip -cd | { tar xvf - || failed=y ; } | (while read a; do $echo -n .; done; echo; )); then
+[ "$keep" = y ] || trap 'cd /tmp; /bin/rm -rf $tmpdir; exit $res' 1 2 3 6
+if ( (cd $location; tail -n +$skip $0; ) | gzip -cd | { tar xvf - || failed=y ; } | (while read a; do $echo -n .; done; echo; )); then
if [ x$failed = xy ]; then
echo 'File extraction failed!'; cd /tmp; /bin/rm -rf $tmpdir; eval $finish; exit 1
fi