#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-rcs VERSION=5.7 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG cd $PKG explodepkg $CWD/_rcs.tar.gz ( cd $TMP tar xzf $CWD/rcs-$VERSION.tar.gz cd rcs-$VERSION zcat $CWD/rcs-$VERSION.diff.gz | patch -p0 --verbose || exit ./configure \ --prefix=/usr \ $TARGET make || exit cd src cat ci > $PKG/usr/bin/ci cat co > $PKG/usr/bin/co cat ident > $PKG/usr/bin/ident cat merge > $PKG/usr/bin/merge cat rcs > $PKG/usr/bin/rcs cat rcsclean > $PKG/usr/bin/rcsclean cat rcsdiff > $PKG/usr/bin/rcsdiff cat rcsmerge > $PKG/usr/bin/rcsmerge cat rcstest > $PKG/usr/bin/rcstest cat rlog > $PKG/usr/bin/rlog cd ../man for page in ci.1 co.1 ident.1 merge.1 rcs.1 rcsclean.1 rcsdiff.1 rcsfreeze.1 \ rcsintro.1 rcsmerge.1 rlog.1 ; do cat $page | gzip -9c > $PKG/usr/man/man1/$page.gz done cat rcsfile.5 | gzip -9c > $PKG/usr/man/man5/rcsfile.5.gz mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/rcs-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/rcs.build.log