From 4f40dc60c125ad1e14071c234b67315fab6c6fc3 Mon Sep 17 00:00:00 2001 From: Rob Funk Date: Fri, 18 Jun 2004 04:17:07 +0000 Subject: Move shipper to dist-tools directory svn path=/trunk/; revision=3889 --- shipper/buildrpms | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 shipper/buildrpms (limited to 'shipper/buildrpms') diff --git a/shipper/buildrpms b/shipper/buildrpms deleted file mode 100755 index 22086d01..00000000 --- a/shipper/buildrpms +++ /dev/null @@ -1,41 +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 , 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" - -# build RPMs -rpmbuild --rcfile "$RCFILE" $ARCH -ta $TARBALL -status=$? - -if [ $status = '0' ] -then - # copy RPMs to this directory - cp "$TMPDIR"/RPMS/*/*.rpm . - cp "$TMPDIR"/SRPMS/*.rpm . -fi - -# clean up build directory -[ ! -z "$TMPDIR" -a "$TMPDIR" != / ] && rm -rf "$TMPDIR" - -exit $status -- cgit v1.2.3