= Setup DWT for linux and DMD = This downloads everything that is necessary and configures the tools. This should get you started. This can also help as a reference if setup problems occur. - Save this script to a file in a new/empty directory. - Set execution permission on the file (chmod +x file). - In a console window cd into this directory and start it. {{{ #!/bin/sh echo "This downloads and configures DWT" echo "Run this in a new created directory" echo " to proceed or cancel with Ctrl-C" read answer DSSS_VERSION=0.75 TANGO_RELEASE=0.99.6 TANGO_DMD_RELEASE=1.029 DSSS_DIR=dsss-$DSSS_VERSION-dmd-gnuWlinux-x86 DSSS_ARCHIVE=$DSSS_DIR.tar.gz TANGO_DIR=tango-$TANGO_RELEASE-bin-linux-dmd.$TANGO_DMD_RELEASE TANGO_ARCHIVE=$TANGO_DIR.tar.gz mkdir -p archives if [ ! -f archives/$DSSS_ARCHIVE ] then wget http://svn.dsource.org/projects/dsss/downloads/$DSSS_VERSION/$DSSS_ARCHIVE -O archives/$DSSS_ARCHIVE fi if [ ! -f archives/$TANGO_ARCHIVE ] then wget http://downloads.dsource.org/projects/tango/$TANGO_RELEASE/$TANGO_ARCHIVE -O archives/$TANGO_ARCHIVE fi rm -f archives/dwt-linux.tar.gz wget http://hg.dsource.org/projects/dwt-linux/archive/tip.tar.gz -O archives/dwt-linux.tar.gz rm -f archives/dwt-samples.tar.gz wget http://hg.dsource.org/projects/dwt-samples/archive/tip.tar.gz -O archives/dwt-samples.tar.gz rm -f archives/dwt-addons.tar.gz wget http://hg.dsource.org/projects/dwt-addons/archive/tip.tar.gz -O archives/dwt-addons.tar.gz # extract the archives rm -rf dsss tar xzf archives/$DSSS_ARCHIVE mv $DSSS_DIR dsss rm -rf tango tar xzf archives/$TANGO_ARCHIVE mv $TANGO_DIR tango rm -rf dwt-linux mkdir -p dwt-linux tar xz -C dwt-linux --strip 1 --file archives/dwt-linux.tar.gz rm -f archive/dwt-linux.tar.gz rm -rf dwt-samples mkdir -p dwt-samples tar xz -C dwt-samples --strip 1 --file archives/dwt-samples.tar.gz rm -f archive/dwt-samples.tar.gz rm -rf dwt-addons mkdir -p dwt-addons tar xz -C dwt-addons --strip 1 --file archives/dwt-addons.tar.gz rm -f archive/dwt-addons.tar.gz # Fixes and workarounds echo Replace the DMD binary with 1.028 because of bug 2067 if [ ! -f dmd.1.028.zip ] then wget http://ftp.digitalmars.com/dmd.1.028.zip -O archives/dmd.1.028.zip fi unzip archives/dmd.1.028.zip dmd/bin/dmd cp dmd/bin/dmd tango/bin/dmd chmod +x tango/bin/dmd rm -rf dmd echo make dsss use the tango profile echo "profile=dmd-posix-tango" > dsss/etc/rebuild/default echo make dsss use oneatatime=off sed -i s/oneatatime=yes/oneatatime=no/ dsss/etc/rebuild/dmd-posix-tango echo "create a dsss starter which adds dsss/bin and tango/bin to PATH" DSSS_START=dsss.sh echo "#!/bin/sh" > $DSSS_START echo "PATH=\$PATH:`pwd`/tango/bin:`pwd`/dsss/bin `pwd`/dsss/bin/dsss \$*" >> $DSSS_START chmod +x $DSSS_START cd dwt-linux ../dsss.sh build ../dsss.sh install cd .. echo "**************************************************" echo "* The DWT Setup finished successfully " echo "* now go to the dwt-samples directory and run:" echo "* ../dsss.sh build " echo "**************************************************" }}}