Changeset 2222
- Timestamp:
- 05/15/07 14:19:50 (2 years ago)
- Files:
-
- trunk/install/dmd-posix/installer.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/install/dmd-posix/installer.sh
r2216 r2222 27 27 # This installer works by black magic: The following number must be the exact 28 28 # number of lines in this file+3: 29 LINES= 9329 LINES=112 30 30 31 31 # Install DMD if necessary … … 35 35 if [ ! "$1" ] 36 36 then 37 echo -n "What prefix do you want to install DMD to? "37 echo -n "What prefix do you want to install DMD to? " 38 38 read DMDDIR 39 39 else … … 45 45 cd $DMDDIR || die 1 "Failed to cd to the DMD install directory" 46 46 tail -n+$LINES $FULLNAME | tar Oxf - dmd.tar.gz | gunzip -c | tar xf - || die 1 "Failed to extract DMD" 47 48 if [ ! -e "bin/dmd.conf" ]49 then50 die 1 "Error in install, no dmd.conf found"51 else52 if [ ! "`grep -L-ltango bin/dmd.conf`" ]53 then54 sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' bin/dmd.conf55 fi56 fi57 58 47 fi 59 48 … … 99 88 ./install-dmd.sh > /dev/null 2> /dev/null || die 1 "Failed to install Tango core" 100 89 90 if [ ! -e "$DMDDIR/bin/dmd.conf" ] 91 then 92 die 1 "Error in install, no dmd.conf found" 93 else 94 if [ ! "`grep '\-L\-ltango' $DMDDIR/bin/dmd.conf`" ] 95 then 96 sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' $DMDDIR/bin/dmd.conf 97 fi 98 fi 99 100 101 101 # Then install the rest of Tango 102 cd $DMDDIR /bin|| die 1 "Failed to cd to DMD's installed prefix"102 cd $DMDDIR || die 1 "Failed to cd to DMD's installed prefix" 103 103 tail -n+$LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - || 104 104 die 1 "Failed to extract Tango" 105 105 106 106 echo 'Done!' 107 echo "Run 'tango-dmd-tool --uninstall $DMDDIR' to uninstall Tango" 108 107 109 exit 0












