Changeset 2015 for downloads/0.96/tango-0.96-gdc-i686-pc-linux-gnu.sh
- Timestamp:
- 04/10/07 15:53:17 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
downloads/0.96/tango-0.96-gdc-i686-pc-linux-gnu.sh
r1960 r2015 20 20 21 21 # This installer works by black magic: The following number must be the exact 22 # number of lines in this file+ 4:23 LINES= 10322 # number of lines in this file+3: 23 LINES=88 24 24 25 25 # Install GDC if necessary … … 37 37 mkdir -p $GDCDIR || die 1 "Failed to create the GDC install directory" 38 38 cd $GDCDIR || die 1 "Failed to cd to the GDC install directory" 39 tail -n $LINES $FULLNAME | tar Oxf - gdc.tar.gz | gunzip -c | tar xf - ||39 tail -n+$LINES $FULLNAME | tar Oxf - gdc.tar.gz | gunzip -c | tar xf - || 40 40 die 1 "Failed to extract GDC" 41 41 fi … … 56 56 else 57 57 # Get our proper GDC prefix 58 OLDIPS="$IPS" 59 IPS=: 60 for i in $PATH 58 for i in `echo $PATH | sed 's/:/ /g'` 61 59 do 62 if [ -e "$i/ bin/gdc" ]60 if [ -e "$i/gdc" ] 63 61 then 64 GDCDIR="$i "62 GDCDIR="$i/.." 65 63 break 66 64 fi 67 65 done 68 IPS="$OLDIPS"69 66 fi 70 67 fi … … 73 70 cd $TTMP || die 1 "Failed to cd to temporary directory" 74 71 75 tail -n $LINES $FULLNAME | tar Oxf - core.tar.gz | gunzip -c | tar xf - ||72 tail -n+$LINES $FULLNAME | tar Oxf - core.tar.gz | gunzip -c | tar xf - || 76 73 die 1 "Failed to extract the Tango core" 77 74 … … 84 81 # Then install the rest of Tango 85 82 cd $GDCDIR || die 1 "Failed to cd to GDC's installed prefix" 86 tail -n $LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - ||83 tail -n+$LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - || 87 84 die 1 "Failed to extract Tango" 88 85 89 86 echo 'Done!' 90 87 exit 0 91 core.tar.gz 00006440000765000076600000721362105770516020125220ustargregorgregor





