PROGNAME="GCC C++ Compiler" DESC="\ gcc-g++ (C++ for GCC) \n\ \n\ C++ support for the GNU Compiler Collection. \n\ \n\ This package contains those parts of the compiler collection needed to \n\ compile C++ code. The base gcc package is also required." SUBPKGNAME=gcc-g++-$VERSION-s390-$BUILD subinstall() { echo "nothing to install for gcc-g++" } subspecial() { # # copy complete package into subpackage tree # ( cd ../package.save/ tar -cf - usr/ | ( cd $SUBPKG ; tar -xpf - ) ) ( cd $SUBPKG/usr/bin/ rm addr2name.awk c++ cpp g77 gcc gccbug gcj gcjh gcov gij \ gnat* grepjar jar jcf-dump jv-convert jv-scan rmic rmiregistry \ s390-slackware-linux-c++ s390-slackware-linux-g++ \ s390-slackware-linux-gcc s390-slackware-linux-gcc-$VERSION \ s390-slackware-linux-gcj mv g++ g++-gcc-$VERSION ) ( cd $SUBPKG/usr/doc rm -rf gcc-$VERSION $DF $DJ $DO mv $DX/gcc-$VERSION . rmdir $DX ) ( cd $SUBPKG/usr/include/ rm * rm -rf gcj/ gnu/ java/ javax/ ) rm -rf $SUBPKG/usr/info/ ( cd $SUBPKG/usr/lib/gcc-lib/s390-slackware-linux/$VERSION/ rm cc1 cc1obj collect2 crt*.o f771 gnat1 jc1 jvgenmain libgcc.a libgcc_eh.a specs rm -rf adainclude/ adalib/ include/ install-tools/ ) ( cd $SUBPKG/usr/lib rm lib-org* libffi* libfrtbegin.a libg2c.* libgcc_s.so.1 libgcj.* libobjc.* rm -rf security/ ) ( cd $SUBPKG/usr/man/man1/ rm cpp.1.gz g77.1.gz gcc.1.gz gcj.1.gz gcjh.1.gz \ gcov.1.gz gij.1.gz grepjar.1.gz jar.1.gz jcf-dump.1.gz \ jv-convert.1.gz jv-scan.1.gz rmic.1.gz rmiregistry.1.gz ) rm -rf $SUBPKG/usr/man/man7/ \ $SUBPKG/usr/share/ cd $SUBCTL cat $CWD/slack-desc.gcc-g++ > slack-desc cat > doinst.sh << EOF ( cd usr/bin ; rm -rf c++ ) ( cd usr/bin ; ln -sf g++ c++ ) ( cd usr/bin ; rm -rf g++ ) ( cd usr/bin ; ln -sf g++-gcc-$VERSION g++ ) ( cd usr/bin ; rm -rf s390-slackware-linux-c++ ) ( cd usr/bin ; ln -sf g++-gcc-$VERSION s390-slackware-linux-c++ ) ( cd usr/bin ; rm -rf s390-slackware-linux-g++ ) ( cd usr/bin ; ln -sf g++-gcc-$VERSION s390-slackware-linux-g++ ) ( cd usr/lib ; rm -rf libstdc++.so ) ( cd usr/lib ; ln -sf libstdc++.so.5.0.6 libstdc++.so ) ( cd usr/lib ; rm -rf libstdc++.so.5 ) ( cd usr/lib ; ln -sf libstdc++.so.5.0.6 libstdc++.so.5 ) ( cd usr/man/man1 ; rm -rf c++.1.gz ) ( cd usr/man/man1 ; ln -sf g++.1.gz c++.1.gz ) EOF }