]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- added rpmb() for new directory layout
authorTomasz Pala <gotar@pld-linux.org>
Tue, 28 Apr 2009 23:09:12 +0000 (23:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build.sh -> 1.57

rpm-build.sh

index 31a314908dd89beec08874962b6f39ddcdf90943..ffe07978971791a04e2568ec617a77d85335d2cd 100644 (file)
@@ -274,3 +274,14 @@ d() {
 
        (builtin cd "$dir"; dif $diff{~,})
 }
+rpmb() {
+       local SPEC SPECDIR
+       for arg in $@; do
+               case "$arg" in
+                       *.spec) SPEC="$arg"
+                               ;;
+               esac
+       done
+       SPECDIR=$(dirname "$(pwd)/${SPEC:-.}")
+       command rpmbuild --define "_specdir $SPECDIR" --define "_sourcedir $SPECDIR" $@
+}
This page took 0.05703 seconds and 4 git commands to generate.