Changeset 2860
- Timestamp:
- 11/12/07 11:02:50 (1 year ago)
- Files:
-
- branches/experimental/D2.0/lib/build-tango.sh (modified) (8 diffs)
- branches/experimental/D2.0/lib/dmd-include (deleted)
- branches/experimental/D2.0/lib/install-dmd.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/experimental/D2.0/lib/build-tango.sh
r2854 r2860 14 14 DC= 15 15 LIB= 16 FLAGS="-v1 -inline"17 16 18 17 usage() { 19 echo 'Usage: build-tango.sh [--help] identifier 18 echo 'Usage: build-tango.sh [--help] identifier 20 19 Options: 21 20 --help: Will print this help text 22 21 <identifier> is one of {dmd, gdc, mac} and will build libtango.a, 23 22 libgtango.a or universal Mac binaries respectively 24 23 25 24 The script must be called from within lib/ and the resulting 26 25 binaries will be found there. The build requires that libdtango-base-dmd.a/ … … 30 29 31 30 UNAME=`uname` 31 INLINE="-inline" 32 DMDVERSION= 32 33 33 34 # Various functions to workaround bugs in the compilers … … 44 45 if [ "$DMDVERSION" = "1.020" -o "$DMDVERSION" = "1.021" ] 45 46 then 46 INLINE="" 47 INLINE="" 47 48 echo ">> Removing -inline due to bugzilla 668" 48 49 fi … … 51 52 # Checks for known compiler bugs 52 53 compilerbugs() { 53 echo ">> Checking compiler version $DC" 54 echo ">> Checking compiler version $DC" 54 55 #`$DCbugs` 55 56 if [ "$DC" = "dmd" ] 56 57 then 57 . dmd-include 58 DEP=$PHOBOSLIB 59 FLAGS=$DMDFLAGS 58 dmdbugs 60 59 fi 61 60 } … … 111 110 DC=$1 112 111 LIB=$2 113 DEP=$3114 112 115 113 if ! $DC --help >& /dev/null … … 122 120 compilerbugs 123 121 124 if [ ! -e "$ DEP" ]122 if [ ! -e "$3" ] 125 123 then 126 die "Dependency $ DEPnot present, run build-yourcompiler.sh first" 1124 die "Dependency $3 not present, run build-yourcompiler.sh first" 1 127 125 fi 128 126 … … 145 143 fi 146 144 147 148 145 if [ "$1" = "--help" ] 149 146 then … … 158 155 then 159 156 # build Universal Binary version of the Tango library 160 build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc 161 build i686-apple-darwin8-gdmd libgtango.a.i386 libgphobos.a.i386 162 lipo -create -output libgtango.a libgtango.a.ppc libgtango.a.i386 157 build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc 158 build i686-apple-darwin8-gdmd libgtango.a.i386 libgphobos.a.i386 159 lipo -create -output libgtango.a libgtango.a.ppc libgtango.a.i386 163 160 else 164 161 usage branches/experimental/D2.0/lib/install-dmd.sh
r2854 r2860 25 25 cd "`dirname $0`" 26 26 27 # include dmd definitions28 . dmd-include29 30 27 # 0) Parse arguments 31 28 UNINSTALL=0 … … 72 69 # Revert to Phobos if earlier evidence of existense is found 73 70 # Only relevant for pre 0.99.3 installations 74 if [ -e "$PREFIX/lib/ $PHOBOSLIB.phobos" ]75 then 76 mv $PREFIX/lib/ $PHOBOSLIB.phobos $PREFIX/lib/$PHOBOSLIB71 if [ -e "$PREFIX/lib/libphobos.a.phobos" ] 72 then 73 mv $PREFIX/lib/libphobos.a.phobos $PREFIX/lib/libphobos.a 77 74 else 78 75 if [ -e "$PREFIX/lib/libphobos.a" ] … … 165 162 if [ ! "`grep '\-version=Tango' $PREFIX/bin/dmd.conf`" ] 166 163 then 167 mv $PREFIX/bin/dmd.conf $PREFIX/bin/dmd.conf.phobos 164 mv $PREFIX/bin/dmd.conf $PREFIX/bin/dmd.conf.phobos 168 165 create_dmd_conf 169 166 else … … 188 185 if [ ! -e "$PREFIX/lib/libdtango-base-dmd.a" ] 189 186 then 190 die "libdtango-base-dmd.a not properly installed to $PREFIX/lib" 10 187 die "libdtango-base-dmd.a not properly installed to $PREFIX/lib" 10 191 188 fi 192 189 if [ ! -e "$PREFIX/bin/dmd.conf" ] 193 190 then 194 die "dmd.conf not present in $PREFIX/bin" 11 191 die "dmd.conf not present in $PREFIX/bin" 11 195 192 elif [ ! "`grep '\-version=Tango' $PREFIX/bin/dmd.conf`" ] 196 193 then












