#!/bin/bash if [ ! "$1" ] ; then exit ; fi clear echo "You have chosen to install Tango via DSSS. If you follow through, you" echo "will no longer be able to build Phobos-based software. Uninstalling" echo "tango via DSSS WILL NOT uninstall the tango core, so this operation" echo "is difficult to undo. Are you sure you want to do this?" read YN if [ "`echo $YN | grep '^[nN]'`" ] then exit 1 fi # Install the tango core ... cd tango/lib || exit 1 # Build ... echo "Building Tango core..." ./build-$1.sh || exit 1 # Install echo "Installing Tango core..." ./install-$1.sh --uninstall if [ "$1" = "gdc" ] then # The GDC install script can get GDC's prefix automatically ./install-gdc.sh || exit 1 else ./install-$1.sh --prefix "$PREFIX" || exit 1 fi # Then update our rebuild profile to use tango echo 'profile='$1'-posix-tango' > $ETC_PREFIX/rebuild/default 2> /dev/null