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