summaryrefslogtreecommitdiffstats
path: root/scripts/rpmdev-build-devspec
diff options
context:
space:
mode:
authorViktor Hercinger <vhercing@redhat.com>2013-03-18 15:48:16 +0100
committerViktor Hercinger <vhercing@redhat.com>2013-03-18 15:48:16 +0100
commit62eeea27227f26e17cc3bf8edbfd41ad9d6785f9 (patch)
treedcfbb40983ee6e27241685285df42aefdd48a17b /scripts/rpmdev-build-devspec
parent24a4da5df10c49eb74b7fc81c95d235584ef973f (diff)
downloadrpm-tools-62eeea27227f26e17cc3bf8edbfd41ad9d6785f9.tar.gz
rpm-tools-62eeea27227f26e17cc3bf8edbfd41ad9d6785f9.tar.xz
rpm-tools-62eeea27227f26e17cc3bf8edbfd41ad9d6785f9.zip
modified spec path
Diffstat (limited to 'scripts/rpmdev-build-devspec')
-rwxr-xr-xscripts/rpmdev-build-devspec11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/rpmdev-build-devspec b/scripts/rpmdev-build-devspec
index dacd5c5..8d2f446 100755
--- a/scripts/rpmdev-build-devspec
+++ b/scripts/rpmdev-build-devspec
@@ -3,7 +3,8 @@
DESTDIR=/tmp/$0.$UID.build
CLEAN=0
DIST=fedora-18-local-x86_64
-PACKAGE_PATH_BASE=$HOME/devel/specs
+SYSTEM=Fedora
+PACKAGE_PATH_BASE=$HOME/.specs
VERBOSE=0
MAKEREPO=
NOTIFY=0
@@ -62,6 +63,11 @@ do
shift
case $OPTION in
+ --base-path)
+ PACKAGE_PATH_BASE=$1
+ shift
+ ;;
+
-b|--build)
DESTDIR=$1
shift
@@ -116,6 +122,7 @@ do
usage: $0 [ options ] < package name >
options:
+ --base-path Specify base path for spec searches (default: $PACKAGE_PATH_BASE)
-b --build Specify output for source/built RPMs (default: $DESTDIR)
--branch Change branch before building
-c --clean Clean build directory before building
@@ -188,7 +195,7 @@ do
continue
fi
- SPECFILE=$(find $PACKAGE_PATH -name '*.spec' | head -1)
+ SPECFILE=$(find $PACKAGE_PATH/ -name '*.spec' | head -1)
if [ "x$SPECFILE" = "x" ]
then
echo "$PACKAGE_PATH contains no spec file"