From 62eeea27227f26e17cc3bf8edbfd41ad9d6785f9 Mon Sep 17 00:00:00 2001 From: Viktor Hercinger Date: Mon, 18 Mar 2013 15:48:16 +0100 Subject: modified spec path --- scripts/rpmdev-build-devspec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'scripts/rpmdev-build-devspec') 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" -- cgit