]> git.pld-linux.org Git - packages/rpm-build-tools.git/blob - repackage.sh
- grap output filename from pear command (fixes bad naming of php-pear-Crypt_Rc4...
[packages/rpm-build-tools.git] / repackage.sh
1 #!/bin/sh
2 # will build package, skipping %prep and %build stage
3 # i use it a lot!
4 #
5 # -glen 2005-03-03
6
7 set -e
8
9 rpmbuild() {
10         set -x
11
12         # i'd use ./builder to get all the ~/.bcondrc parsing,
13     # but builder doesn't understand -bi
14 #       ./builder -ncs -nc -nn --opts --short-circuit "$@"
15         /usr/bin/rpmbuild --short-circuit --define '_source_payload w9.gzdio' "$@" || exit
16 }
17
18 # just create the rpm's if -bb is somewhere in the args
19 if [[ *$@* != *-bb* ]]; then
20         rpmbuild -bi "$@"
21 fi
22 rpmbuild -bb --define 'clean %{nil}' "$@"
This page took 0.034716 seconds and 3 git commands to generate.