summaryrefslogtreecommitdiffstats
path: root/scripts/inspect.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-09-18 00:04:00 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-09-18 00:04:00 +0000
commit19cf6de2f3070181014e9add7c067043b05d7ca6 (patch)
treeb8c2da9339b58b607120c132bea3bdb4f3d8bc21 /scripts/inspect.in
parent9da8868de2d0f89fe81123425d60eb1fa39d2b99 (diff)
downloadquilt-19cf6de2f3070181014e9add7c067043b05d7ca6.tar.gz
- Replace @FOO@ macros in scripts with foo command where possible.
Diffstat (limited to 'scripts/inspect.in')
-rw-r--r--scripts/inspect.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/inspect.in b/scripts/inspect.in
index 7ad2b7a..b929b0f 100644
--- a/scripts/inspect.in
+++ b/scripts/inspect.in
@@ -85,11 +85,6 @@ done > $tmpdir/md5sums
echo >&4
shopt -u nullglob
-RPM=( @RPMBUILD@ --eval "%define _sourcedir $sourcedir" \
- --eval "%define _specdir $sourcedir" \
- --eval "%define _builddir $tmpdir/build" )
-PATH="$tmpdir/bin:$PATH"
-
# wrapper script for patch and tar
cat <<-'EOF' > $tmpdir/bin/wrapper
#! @BASH@
@@ -192,10 +187,14 @@ ln -s wrapper $tmpdir/bin/patch
ln -s wrapper $tmpdir/bin/tar
# let rpm do all the dirty specfile stuff ...
-set -- @RPMBUILD@
-echo -n "### ${1##*/}: " >&4
-
-"${RPM[@]}" --nodeps -bp "$specfile" < /dev/null >&2
+echo -n "### rpmbuild: " >&4
+
+export PATH="$tmpdir/bin:$PATH"
+rpmbuild --eval "%define _sourcedir $sourcedir" \
+ --eval "%define _specdir $sourcedir" \
+ --eval "%define _builddir $tmpdir/build" \
+ --nodeps \
+ -bp "$specfile" < /dev/null >&2
status=$?
echo >&4
exit $status