Changeset 2060
- Timestamp:
- 04/15/07 19:22:09 (2 years ago)
- Files:
-
- trunk/install/dmd-posix/installer.sh (modified) (4 diffs)
- trunk/install/dmd-posix/mkinstaller.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/install/dmd-posix/installer.sh
r2056 r2060 18 18 19 19 # This installer works by black magic: The following number must be the exact 20 # number of lines in this file+ 4:21 LINES=9 120 # number of lines in this file+3: 21 LINES=93 22 22 23 23 # Install DMD if necessary … … 27 27 if [ ! "$1" ] 28 28 then 29 echo -n "What p athdo you want to install DMD to?"29 echo -n "What prefix do you want to install DMD to?" 30 30 read DMDDIR 31 31 else … … 34 34 35 35 export PATH="$DMDDIR/bin:$PATH" 36 mkdir -p $DMDDIR || die 1 "Failed to create the DMD install directory"36 mkdir -p $DMDDIR/bin || die 1 "Failed to create the DMD install directory" 37 37 cd $DMDDIR || die 1 "Failed to cd to the DMD install directory" 38 38 tail -n+$LINES $FULLNAME | tar Oxf - dmd.tar.gz | gunzip -c | tar xf - || die 1 "Failed to extract DMD" … … 82 82 83 83 # Then install the rest of Tango 84 cd $DMDDIR || die 1 "Failed to cd to DMD's installed prefix"84 cd $DMDDIR/bin || die 1 "Failed to cd to DMD's installed prefix" 85 85 sed -i.bak -e 's/^DFLAGS=.*$/& libtango.a/' dmd.conf 86 86 tail -n+$LINES $FULLNAME | tar Oxf - tango.tar.gz | gunzip -c | tar xf - || trunk/install/dmd-posix/mkinstaller.sh
r2056 r2060 78 78 # 3) Make the installer proper 79 79 ( 80 echo -e '#!/bin/bash -x\nINST_DMD=0' ;80 echo -e '#!/bin/bash\nINST_DMD=0' ; 81 81 cat install/dmd-posix/installer.sh ; 82 82 tar cf - core.tar.gz tango.tar.gz … … 96 96 97 97 ( 98 echo -e '#!/bin/bash -x\nINST_DMD=1' ;98 echo -e '#!/bin/bash\nINST_DMD=1' ; 99 99 cat install/dmd-posix/installer.sh ; 100 100 tar cf - core.tar.gz tango.tar.gz dmd.tar.gz












