get-scripts annotate gcc2 @ rev 14

Add cpp2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 26 18:33:01 2014 +0000 (2014-04-26)
parents 19c8e4d5a4db
children 377ade2bcf0c
rev   line source
pascal@13 1 WEB_SITE="http://www.gnu.org/s/gcc/gcc-2.95"
pascal@13 2 VERSION=2.95.4-24
pascal@13 3 TARBALL=gcc-2.95_${VERSION}_i386.deb
pascal@13 4 WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
pascal@14 5 DEPENDS="cpp2 binutils"
pascal@13 6
pascal@13 7 wget $WGET_URL
pascal@13 8 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $URL. Exiting."
pascal@13 9
pascal@13 10 mkdir $PACKAGE
pascal@13 11 dpkg-deb -e $TARBALL $PACKAGE/meta
pascal@13 12 dpkg-deb -x $TARBALL $PACKAGE/fs
pascal@13 13 # extracted pkg can be removed: Save RAM
pascal@13 14 rm -f $TARBALL
pascal@13 15 sed '/^Description:/,$!d;s/^Description://' \
pascal@13 16 < $PACKAGE/meta/control > $PACKAGE/description.txt
pascal@13 17
pascal@13 18 SHORT_DESC="$(sed '/^Description:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 19 MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 20 VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
pascal@13 21 mv $PACKAGE $PACKAGE-$VERSION
pascal@14 22 ln -s gcc-2.95 $PACKAGE-$VERSION/usr/bin/gcc-2
pascal@13 23
pascal@13 24 # Remove unwanted files
pascal@13 25 rm -rf $PACKAGE-$VERSION/fs/usr/share
pascal@13 26 set +e