Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 1910

Show
Ignore:
Timestamp:
03/15/07 18:50:46 (2 years ago)
Author:
Gregor
Message:

*: Non-DSSS installer created.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install/gdc-posix/installer.sh

    r1846 r1910  
    6868fi 
    6969 
    70 # Install DSSS if necessary 
    71 if [ "$INST_DSSS" = "1" ] 
    72 then 
    73     cd $GDCDIR || die 1 "Failed to cd to the GDC install directory" 
    74     tail -n$LINES $FULLNAME | tar Oxf - dsss.tar.gz | gunzip -c | tar xf - || 
    75         die 1 "Failed to extract DSSS" 
    76 fi 
    77  
    7870# Then, cd to our tmpdir and extract core.tar.gz 
    7971cd $TTMP || die 1 "Failed to cd to temporary directory" 
     
    9486 
    9587echo 'Done!' 
    96 echo 'If at any time you wish to uninstall Tango:' 
    97 echo ' $ dsss uninstall tango' 
    98 echo ' $ uninstall-tango-core' 
    9988exit 0 
  • trunk/install/gdc-posix/mkinstaller.sh

    r1573 r1910  
    4444 
    4545# 2) The rest 
    46 if [ ! -e libSDG-tango-core.a ] 
     46if [ ! -e libgtango.a ] 
    4747then 
    4848    dsss build || die 1 "Failed to build Tango" 
     49    rm -rf libgtango_objs 
     50    mkdir -p libgtango_objs 
     51    cd libgtango_objs || die 1 "Failed to cd to libgtango_objs" 
     52    for i in ../libSDG-*.a 
     53    do 
     54        ar x $i 
     55    done 
     56    ar rc ../libgtango.a *.o || die 1 "Failed to create libgtango.a" 
     57    ranlib ../libgtango.a || die 1 "Failed to ranlib libgtango.a" 
     58    cd .. || die 1 "Failed to cd out of libgtango_objs" 
    4959fi 
    50 dsss install --prefix="`pwd`/tmp" || die 1 "Failed to install Tango" 
     60mkdir -p tmp 
     61cd tmp || die 1 "Failed to cd to temporary Tango install" 
    5162 
    52 cd tmp || die 1 "Failed to cd to temporary Tango install" 
    5363mkdir -p bin 
    5464cp ../install/gdc-posix/uninstall.sh bin/uninstall-tango-core || die 1 "Failed to install the uninstaller" 
     65 
     66mkdir -p include 
     67cp -pR ../tango include || die 1 "Failed to copy in the tango .d files" 
     68 
     69mkdir -p lib 
     70cp ../libgtango.a lib || die 1 "Failed to copy in the tango .a file" 
     71 
     72find include/tango -name .svn | xargs rm -rf 
    5573tar zcf ../tango.tar.gz * || die 1 "Failed to create tango.tar.gz" 
    5674cd .. || exit 1 
     
    6078# 3) Make the installer proper 
    6179( 
    62     echo -e '#!/bin/bash\nINST_GDC=0\nINST_DSSS=0' ; 
     80    echo -e '#!/bin/bash\nINST_GDC=0' ; 
    6381    cat install/gdc-posix/installer.sh ; 
    6482    tar cf - core.tar.gz tango.tar.gz 
     
    6684chmod 0755 tango-$TANGO_VERSION-gdc-$PLATFORM.sh 
    6785 
    68 # 4) DSSS 
    69 if [ -e dsss
     86# 4) GDC 
     87if [ -e gdc
    7088then 
    71     cd dsss || die 1 "Failed to cd to dsss" 
     89    cd gdc || die 1 "Failed to cd to gdc" 
     90 
     91    # Clean it up 
     92    rm -rf \ 
     93      bin/*++* \ 
     94      bin/cpp* \ 
     95      bin/gcc* \ 
     96      bin/gcov* \ 
     97      bin/*-linux-gnu-* \ 
     98      bin/*-mingw32-* \ 
     99      include/c++ \ 
     100      info \ 
     101      lib/libiberty* \ 
     102      lib/libmudflap* \ 
     103      lib/libstdc++* \ 
     104      lib/libsupc++* \ 
     105      lib/gcc/*/*/include \ 
     106      libexec/gcc/*/*/cc1 \ 
     107      libexec/gcc/*/*/cc1.* \ 
     108      libexec/gcc/*/*/cc1plus* \ 
     109      man/man1/cpp* \ 
     110      man/man1/g++* \ 
     111      man/man1/gcc* \ 
     112      man/man1/gcov* \ 
     113      man/man7 \ 
     114      share 
    72115    find . -type f | xargs strip --strip-unneeded 
    73     tar zcf ../dsss.tar.gz * || die 1 "Failed to create dsss.tar.gz" 
     116     
     117    tar zcf ../gdc.tar.gz * || die 1 "Failed to create gdc.tar.gz" 
    74118    cd .. || exit 1 
    75119 
    76120    ( 
    77         echo -e '#!/bin/bash\nINST_GDC=0\nINST_DSSS=1' ; 
     121        echo -e '#!/bin/bash\nINST_GDC=1' ; 
    78122        cat install/gdc-posix/installer.sh ; 
    79         tar cf - core.tar.gz tango.tar.gz dsss.tar.gz 
    80     ) > tango-$TANGO_VERSION-gdc-$PLATFORM-withDSSS.sh || die 1 "Failed to create the installer with DSSS" 
    81     chmod 0755 tango-$TANGO_VERSION-gdc-$PLATFORM-withDSSS.sh 
    82  
    83     # 5) GDC 
    84     if [ -e gdc ] 
    85     then 
    86         cd gdc || die 1 "Failed to cd to gdc" 
    87  
    88         # Clean it up 
    89         rm -rf \ 
    90           bin/*++* \ 
    91           bin/cpp* \ 
    92           bin/gcc* \ 
    93           bin/gcov* \ 
    94           bin/*-linux-gnu-* \ 
    95           bin/*-mingw32-* \ 
    96           include/c++ \ 
    97           info \ 
    98           lib/libiberty* \ 
    99           lib/libmudflap* \ 
    100           lib/libstdc++* \ 
    101           lib/libsupc++* \ 
    102           lib/gcc/*/*/include \ 
    103           libexec/gcc/*/*/cc1 \ 
    104           libexec/gcc/*/*/cc1.* \ 
    105           libexec/gcc/*/*/cc1plus* \ 
    106           man/man1/cpp* \ 
    107           man/man1/g++* \ 
    108           man/man1/gcc* \ 
    109           man/man1/gcov* \ 
    110           man/man7 \ 
    111           share 
    112         find . -type f | xargs strip --strip-unneeded 
    113          
    114         tar zcf ../gdc.tar.gz * || die 1 "Failed to create gdc.tar.gz" 
    115         cd .. || exit 1 
    116  
    117         ( 
    118             echo -e '#!/bin/bash\nINST_GDC=1\nINST_DSSS=1' ; 
    119             cat install/gdc-posix/installer.sh ; 
    120             tar cf - core.tar.gz tango.tar.gz dsss.tar.gz gdc.tar.gz 
    121         ) > tango-$TANGO_VERSION-gdc-$PLATFORM-withDSSS-withGDC.sh || die 1 "Failed to create the installer with DSSS and GDC" 
    122         chmod 0755 tango-$TANGO_VERSION-gdc-$PLATFORM-withDSSS-withGDC.sh 
    123     fi 
     123        tar cf - core.tar.gz tango.tar.gz gdc.tar.gz 
     124    ) > tango-$TANGO_VERSION-gdc-$PLATFORM-withGDC.sh || die 1 "Failed to create the installer with GDC" 
     125    chmod 0755 tango-$TANGO_VERSION-gdc-$PLATFORM-withGDC.sh 
    124126fi 
    125127 
    126 # 6) Clean up 
    127 rm -f core.tar.gz tango.tar.gz dsss.tar.gz gdc.tar.gz 
     128# 5) Clean up 
     129rm -f core.tar.gz tango.tar.gz gdc.tar.gz