root/other/tango/tango.sh

Revision 827, 0.9 kB (checked in by Gregor, 1 year ago)

tango.sh: Let install-gdc.sh figure out the prefix itself.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 #!/bin/bash
2 if [ ! "$1" ] ; then exit ; fi
3
4 clear
5 echo "You have chosen to install Tango via DSSS. If you follow through, you"
6 echo "will no longer be able to build Phobos-based software. Uninstalling"
7 echo "tango via DSSS WILL NOT uninstall the tango core, so this operation"
8 echo "is difficult to undo. Are you sure you want to do this?"
9 read YN
10 if [ "`echo $YN | grep '^[nN]'`" ]
11 then
12     exit 1
13 fi
14
15 # Install the tango core ...
16 cd tango/lib || exit 1
17
18 # Build ...
19 echo "Building Tango core..."
20 ./build-$1.sh || exit 1
21
22 # Install
23 echo "Installing Tango core..."
24 ./install-$1.sh --uninstall
25 if [ "$1" = "gdc" ]
26 then
27     # The GDC install script can get GDC's prefix automatically
28     ./install-gdc.sh || exit 1
29 else
30     ./install-$1.sh --prefix "$PREFIX" || exit 1
31 fi
32
33 # Then update our rebuild profile to use tango
34 echo 'profile='$1'-posix-tango' > $ETC_PREFIX/rebuild/default 2> /dev/null
Note: See TracBrowser for help on using the browser.