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





