summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-10-07 15:01:26 -0400
committerColin Walters <walters@verbum.org>2010-10-07 15:02:39 -0400
commit1db82a709adfd374aa9707fa4f89b708cddee8ea (patch)
tree632a36e7d9cdb279c953d3afaee024279bfa416a
parent5bf074cf9b2fced09d57098aa0bbfe4cca6a3bdb (diff)
downloadhomegit-MOVED-TO-GNOME-1db82a709adfd374aa9707fa4f89b708cddee8ea.zip
homegit-MOVED-TO-GNOME-1db82a709adfd374aa9707fa4f89b708cddee8ea.tar.gz
homegit-MOVED-TO-GNOME-1db82a709adfd374aa9707fa4f89b708cddee8ea.tar.xz
rpmbuild-cwd: New file
Define all the RPM variables to look at cwd, which matches Fedora's system.
-rwxr-xr-xbin/rpmbuild-cwd10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/rpmbuild-cwd b/bin/rpmbuild-cwd
new file mode 100755
index 0000000..156e099
--- /dev/null
+++ b/bin/rpmbuild-cwd
@@ -0,0 +1,10 @@
+#!/bin/sh
+# rpmbuild-cwd:
+# Run "rpmbuild", defining all RPM variables to use the current directory.
+# This matches Fedora's system.
+#
+# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php)
+# Copyright (C) 2010 Red Hat, Inc.
+# Written by Colin Walters <walters@verbum.org>
+
+exec rpmbuild --define '_sourcedir .' --define '_specdir .' --define '_builddir .' --define '_srcrpmdir .' --define '_rpmdir .' "$@"