PROGNAME="GCC Fortran 77 Compiler" DESC="\ GNU Fortran-77 compiler from the gcc-2.95.3 release. \n\ \n\ This package contains the GNU Fortran-77 compiler from gcc. To use \n\ this compiler, you'll also need to install the gcc C/C++ compiler \n\ package, binutils, gmake, glibc, and linuxinc.tgz." SUBPKGNAME=gcc_g77-$VERSION-s390-$BUILD subinstall() { echo "nothing to install for gcc_g77" } subspecial() { # # copy Fortran compiler stuff into subpackage tree # mkdir -p $SUBPKG/usr/lib/gcc-lib/s390-slackware-linux/$VERSION/include ( cd /usr/lib/gcc-lib/s390-slackware-linux/$VERSION cp -a f771 libg2c.a \ $SUBPKG/usr/lib/gcc-lib/s390-slackware-linux/$VERSION cp -a include/g2c.h \ $SUBPKG/usr/lib/gcc-lib/s390-slackware-linux/$VERSION/include ) mkdir -p $SUBPKG/usr/bin ( cd /usr/bin ; cp g77 $SUBPKG/usr/bin/g77-gcc-$VERSION ) mkdir -p $SUBPKG/usr/doc/gcc-$VERSION/gcc ( cd /usr/doc/gcc-$VERSION/gcc cp -a f $SUBPKG/usr/doc/gcc-$VERSION/gcc ) mkdir -p $SUBPKG/usr/info ( cd /usr/info for file in g77.info* do cat $file | gzip -9c > $SUBPKG/usr/info/$file.gz done ) mkdir -p $SUBPKG/usr/man/man1 ( cd /usr/man/man1 ; cp -a g77.1.gz $SUBPKG/usr/man/man1 ) # # ownerships and permissions # chown -R root.bin $SUBPKG/usr/bin # # fixup symlinks # mkdir -p $SUBCTL cat << "EOF" >> $SUBCTL/doinst.sh ( cd usr/bin ; rm -rf g77 ) ( cd usr/bin ; ln -sf g77-gcc-2.95.3 g77 ) ( cd usr/bin ; rm -rf f77 ) ( cd usr/bin ; ln -sf g77 f77 ) ( cd usr/man/man1 ; rm -rf f77.1.gz ) ( cd usr/man/man1 ; ln -sf g77.1.gz f77.1.gz ) EOF }