diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2009-10-30 02:23:23 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2009-10-30 02:23:23 +0000 |
commit | c486e64596db92a4319f48f27832fd7ff8cc639d (patch) | |
tree | 5bfc17e33c033121e24b492f5ca41ded5c42d7e5 /dist-tools/shipper | |
parent | 0461562f6326dfff4c6eedb18a5b831eb8475efe (diff) | |
download | fetchmail-c486e64596db92a4319f48f27832fd7ff8cc639d.tar.gz fetchmail-c486e64596db92a4319f48f27832fd7ff8cc639d.tar.bz2 fetchmail-c486e64596db92a4319f48f27832fd7ff8cc639d.zip |
Clean up dist-tools, remove or update.
svn path=/branches/BRANCH_6-3/; revision=5446
Diffstat (limited to 'dist-tools/shipper')
-rwxr-xr-x | dist-tools/shipper/buildrpms | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dist-tools/shipper/buildrpms b/dist-tools/shipper/buildrpms index e3c08c2b..11b3ddfd 100755 --- a/dist-tools/shipper/buildrpms +++ b/dist-tools/shipper/buildrpms @@ -24,6 +24,8 @@ 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 @@ -31,9 +33,9 @@ status=$? if [ $status = '0' ] then - # copy RPMs to this directory - cp "$TMPDIR"/RPMS/*/*.rpm . - cp "$TMPDIR"/SRPMS/*.rpm . + # move RPMs to this directory + mv "$TMPDIR"/RPMS/*/*.rpm . + mv "$TMPDIR"/SRPMS/*.rpm . fi # clean up build directory |