Changeset 2216
- Timestamp:
- 05/15/07 04:53:26 (2 years ago)
- Files:
-
- trunk/install/dmd-posix/installer.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/install/dmd-posix/installer.sh
r2114 r2216 1 #!/bin/bash 2 # Copyright (C) 2007 Gregor Richards 3 # Permission is granted to do anything you please with this software. 4 # This software is provided with no warranty, express or implied, within the 5 # bounds of applicable law. 6 # 7 # Modifications by Alexander Panek, Lars Ivar Igesund 8 1 9 die() { 2 10 rm -rf /tmp/tango.installer.$$ … … 37 45 cd $DMDDIR || die 1 "Failed to cd to the DMD install directory" 38 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 then 50 die 1 "Error in install, no dmd.conf found" 51 else 52 if [ ! "`grep -L-ltango bin/dmd.conf`" ] 53 then 54 sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' bin/dmd.conf 55 fi 56 fi 39 57 40 58 fi












