root/sources/tango.diff

Revision 568, 1.5 kB (checked in by Gregor, 1 year ago)

--

  • dsss.conf

    old new  
     1# This dsss.conf is used exclusively for Tango net-installs. 
     2name = tango 
     3 
     4[+tangocore] 
     5version (Posix) { 
     6    version (GNU) { 
     7        prebuild=bash tango.sh gdc 
     8    } else { 
     9        prebuild=bash tango.sh dmd 
     10    } 
     11} else version (Windows) { 
     12    prebuild=tango.bat 
     13} 
     14 
     15[trunk] 
     16type=subdir 
  • tango.bat

    old new  
     1@echo off 
     2cls 
     3echo It is currently not possible to install tango on Windows via DSSS. 
     4exit 1 
  • tango.sh

    old new  
     1#!/bin/bash 
     2if [ ! "$1" ] ; then exit ; fi 
     3 
     4clear 
     5echo "You have chosen to install Tango via DSSS. If you follow through, you" 
     6echo "will no longer be able to build Phobos-based software. Uninstalling" 
     7echo "tango via DSSS WILL NOT uninstall the tango core, so this operation" 
     8echo "is difficult to undo. Are you sure you want to do this?" 
     9read YN 
     10if [ "`echo $YN | grep '^[nN]'`" ] 
     11then 
     12    exit 1 
     13fi 
     14 
     15# Install the tango core ... 
     16cd trunk/lib || exit 1 
     17./build-$1.sh || exit 1 
     18./install-$1.sh --uninstall 
     19./install-$1.sh || exit 1 
     20 
     21# Then update our rebuild profile to use tango 
     22echo 'profile='$1'-posix-tango' > $ETC_PREFIX/rebuild/default 2> /dev/null 
Note: See TracBrowser for help on using the browser.