comparison release.sh @ 834:8bcf482b2062

Fix: corrected dil subcommand in release.sh.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 11 Aug 2008 19:14:28 +0200
parents a3d1d5d5ce44
children
comparison
equal deleted inserted replaced
833:a3d1d5d5ce44 834:8bcf482b2062
42 HTMLSRC="$DEST/doc/htmlsrc" 42 HTMLSRC="$DEST/doc/htmlsrc"
43 for filepath in $SRC_FILES; 43 for filepath in $SRC_FILES;
44 do 44 do
45 htmlfile=`echo $filepath | sed -e 's@^src/@@' -e 's@/@.@g' -e 's@.d$@@'`.html 45 htmlfile=`echo $filepath | sed -e 's@^src/@@' -e 's@/@.@g' -e 's@.d$@@'`.html
46 echo "FILE: $filepath > $HTMLSRC/$htmlfile"; 46 echo "FILE: $filepath > $HTMLSRC/$htmlfile";
47 ./dil gen --lines --syntax --html $filepath > "$HTMLSRC/$htmlfile"; 47 ./dil hl --lines --syntax --html $filepath > "$HTMLSRC/$htmlfile";
48 done 48 done
49 49
50 # Linux Debug 50 # Linux Debug Binaries
51 echo "***** Building Linux binaries *****" 51 echo "***** Building Linux binaries *****"
52 dsss build -clean -full -version=D2 52 dsss build -clean -full -version=D2
53 cp dil $DEST/bin/dil2_d 53 cp dil $DEST/bin/dil2_d
54 dsss build -clean -full 54 dsss build -clean -full
55 cp dil $DEST/bin/dil_d 55 cp dil $DEST/bin/dil_d
56 # Linux Release 56 # Linux Release Binaries
57 # N.B.: the -inline switch makes the binaries significantly larger.
57 dsss build -clean -full -release -O -inline -version=D2 58 dsss build -clean -full -release -O -inline -version=D2
58 cp dil $DEST/bin/dil2 59 cp dil $DEST/bin/dil2
59 dsss build -clean -full -release -O -inline 60 dsss build -clean -full -release -O -inline
60 cp dil $DEST/bin/dil 61 cp dil $DEST/bin/dil
61 62
63 echo "***** Building Windows binaries *****" 64 echo "***** Building Windows binaries *****"
64 function winbuild 65 function winbuild
65 { # obj dir is winobj. -op = don't strip paths from obj files. 66 { # obj dir is winobj. -op = don't strip paths from obj files.
66 wine ~/bin/dmd.exe -odwinobj -op -ofdil $* $SRC_FILES 67 wine ~/bin/dmd.exe -odwinobj -op -ofdil $* $SRC_FILES
67 } 68 }
68 # Windows Debug 69 # Windows Debug Binaries
69 winbuild -version=D2 70 winbuild -version=D2
70 cp dil.exe $DEST/bin/dil2_d.exe 71 cp dil.exe $DEST/bin/dil2_d.exe
71 winbuild 72 winbuild
72 cp dil.exe $DEST/bin/dil_d.exe 73 cp dil.exe $DEST/bin/dil_d.exe
73 # Windows Release 74 # Windows Release Binaries
74 winbuild -release -O -inline -version=D2 75 winbuild -release -O -inline -version=D2
75 cp dil.exe $DEST/bin/dil2.exe 76 cp dil.exe $DEST/bin/dil2.exe
76 winbuild -release -O -inline 77 winbuild -release -O -inline
77 cp dil.exe $DEST/bin/dil.exe 78 cp dil.exe $DEST/bin/dil.exe
78 fi 79 fi