diff options
Diffstat (limited to 'dist-tools/shipper/buildrpms')
-rwxr-xr-x | dist-tools/shipper/buildrpms | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/dist-tools/shipper/buildrpms b/dist-tools/shipper/buildrpms deleted file mode 100755 index 11b3ddfd..00000000 --- a/dist-tools/shipper/buildrpms +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# -# Build RPMs from the source in the current directory. This script sets -# up an RPM "_topdir" and builds the RPMs under there, then copies the -# binary and source RPMs to the current directory. -# -# Written by Sean Reifschneider <jafo-rpms@tummy.com>, 2003 - -TARBALL=$1 # tarball to build from - -# set up temporary directory -TMPDIR=`pwd`/rpm-build.$$ -[ ! -z "$TMPDIR" -a "$TMPDIR" != / ] && rm -rf "$TMPDIR" -mkdir -p "$TMPDIR"/BUILD -mkdir -p "$TMPDIR"/RPMS -mkdir -p "$TMPDIR"/SOURCES -mkdir -p "$TMPDIR"/SPECS -mkdir -p "$TMPDIR"/SRPMS - -# set up rpmmacros file -MACROFILE="$TMPDIR"/rpmmacros -RCFILE="$TMPDIR"/rpmrc -sed "s|~/.rpmmacros|$MACROFILE|" /usr/lib/rpm/rpmrc >"$RCFILE" -echo "%_topdir $TMPDIR" >"$MACROFILE" -echo "%_topdir $TMPDIR" >"$MACROFILE" - -ARCH=--target=$(uname -m) - -# build RPMs -rpmbuild --rcfile "$RCFILE" $ARCH -ta $TARBALL \ -|| rpm --rcfile "$RCFILE" $ARCH -ta $TARBALL -status=$? - -if [ $status = '0' ] -then - # move RPMs to this directory - mv "$TMPDIR"/RPMS/*/*.rpm . - mv "$TMPDIR"/SRPMS/*.rpm . -fi - -# clean up build directory -[ ! -z "$TMPDIR" -a "$TMPDIR" != / ] && rm -rf "$TMPDIR" - -exit $status |