Changeset 1910
- Timestamp:
- 03/15/07 18:50:46 (2 years ago)
- Files:
-
- trunk/install/gdc-posix-dsss (copied) (copied from trunk/install/gdc-posix)
- trunk/install/gdc-posix-dsss/installer.sh (copied) (copied from trunk/install/gdc-posix/installer.sh)
- trunk/install/gdc-posix-dsss/mkinstaller.sh (copied) (copied from trunk/install/gdc-posix/mkinstaller.sh)
- trunk/install/gdc-posix-dsss/uninstall.sh (copied) (copied from trunk/install/gdc-posix/uninstall.sh)
- trunk/install/gdc-posix/installer.sh (modified) (2 diffs)
- trunk/install/gdc-posix/mkinstaller.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/install/gdc-posix/installer.sh
r1846 r1910 68 68 fi 69 69 70 # Install DSSS if necessary71 if [ "$INST_DSSS" = "1" ]72 then73 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 fi77 78 70 # Then, cd to our tmpdir and extract core.tar.gz 79 71 cd $TTMP || die 1 "Failed to cd to temporary directory" … … 94 86 95 87 echo 'Done!' 96 echo 'If at any time you wish to uninstall Tango:'97 echo ' $ dsss uninstall tango'98 echo ' $ uninstall-tango-core'99 88 exit 0 trunk/install/gdc-posix/mkinstaller.sh
r1573 r1910 44 44 45 45 # 2) The rest 46 if [ ! -e lib SDG-tango-core.a ]46 if [ ! -e libgtango.a ] 47 47 then 48 48 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" 49 59 fi 50 dsss install --prefix="`pwd`/tmp" || die 1 "Failed to install Tango" 60 mkdir -p tmp 61 cd tmp || die 1 "Failed to cd to temporary Tango install" 51 62 52 cd tmp || die 1 "Failed to cd to temporary Tango install"53 63 mkdir -p bin 54 64 cp ../install/gdc-posix/uninstall.sh bin/uninstall-tango-core || die 1 "Failed to install the uninstaller" 65 66 mkdir -p include 67 cp -pR ../tango include || die 1 "Failed to copy in the tango .d files" 68 69 mkdir -p lib 70 cp ../libgtango.a lib || die 1 "Failed to copy in the tango .a file" 71 72 find include/tango -name .svn | xargs rm -rf 55 73 tar zcf ../tango.tar.gz * || die 1 "Failed to create tango.tar.gz" 56 74 cd .. || exit 1 … … 60 78 # 3) Make the installer proper 61 79 ( 62 echo -e '#!/bin/bash\nINST_GDC=0 \nINST_DSSS=0' ;80 echo -e '#!/bin/bash\nINST_GDC=0' ; 63 81 cat install/gdc-posix/installer.sh ; 64 82 tar cf - core.tar.gz tango.tar.gz … … 66 84 chmod 0755 tango-$TANGO_VERSION-gdc-$PLATFORM.sh 67 85 68 # 4) DSSS69 if [ -e dsss]86 # 4) GDC 87 if [ -e gdc ] 70 88 then 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 72 115 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" 74 118 cd .. || exit 1 75 119 76 120 ( 77 echo -e '#!/bin/bash\nINST_GDC= 0\nINST_DSSS=1' ;121 echo -e '#!/bin/bash\nINST_GDC=1' ; 78 122 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 124 126 fi 125 127 126 # 6) Clean up127 rm -f core.tar.gz tango.tar.gz dsss.tar.gzgdc.tar.gz128 # 5) Clean up 129 rm -f core.tar.gz tango.tar.gz gdc.tar.gz












