# HG changeset patch # User Pascal Bellard # Date 1398537181 0 # Node ID 6f78b169953ff5d11aff92058888a0f28179194a # Parent 19c8e4d5a4db653ad6e56ce2a684eb7bdb6cf571 Add cpp2 diff -r 19c8e4d5a4db -r 6f78b169953f cpp2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpp2 Sat Apr 26 18:33:01 2014 +0000 @@ -0,0 +1,25 @@ +WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95" +VERSION=2.95.4-24 +TARBALL=cpp-2.95_${VERSION}_i386.deb +WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL + +wget $WGET_URL +[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting." + +mkdir $PACKAGE +dpkg-deb -e $TARBALL $PACKAGE/meta +dpkg-deb -x $TARBALL $PACKAGE/fs +# extracted pkg can be removed: Save RAM +rm -f $TARBALL +sed '/^Description:/,$!d;s/^Description://' \ + < $PACKAGE/meta/control > $PACKAGE/description.txt + +SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)" +MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" +VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" +mv $PACKAGE $PACKAGE-$VERSION +ln -s cpp-2.95 $PACKAGE-$VERSION/usr/bin/cpp-2 + +# Remove unwanted files +rm -rf $PACKAGE-$VERSION/fs/usr/share +set +e diff -r 19c8e4d5a4db -r 6f78b169953f gcc2 --- a/gcc2 Sat Apr 26 16:01:23 2014 +0000 +++ b/gcc2 Sat Apr 26 18:33:01 2014 +0000 @@ -2,6 +2,7 @@ VERSION=2.95.4-24 TARBALL=gcc-2.95_${VERSION}_i386.deb WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL +DEPENDS="cpp2 binutils" wget $WGET_URL [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting." @@ -18,6 +19,7 @@ MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)" VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)" mv $PACKAGE $PACKAGE-$VERSION +ln -s gcc-2.95 $PACKAGE-$VERSION/usr/bin/gcc-2 # Remove unwanted files rm -rf $PACKAGE-$VERSION/fs/usr/share