]>
Commit | Line | Data |
---|---|---|
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 | /usr/bin/rpmbuild ${TARGET:+--target $TARGET} $BCONDS --short-circuit "$@" || exit | |
12 | } | |
13 | ||
14 | specfile="${1%.spec}.spec"; shift | |
15 | set -- "$specfile" "$@" | |
16 | ||
17 | tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile) | |
18 | if [ "$tmp" ]; then | |
19 | TARGET="$tmp" | |
20 | fi | |
21 | ||
22 | BCONDS=$(./builder --show-bcond-args $specfile) | |
23 | ||
24 | rpmbuild -bc "$@" |