]> git.pld-linux.org Git - packages/rpm-build-tools.git/blame_incremental - compile.sh
- some usage
[packages/rpm-build-tools.git] / compile.sh
... / ...
CommitLineData
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
7set -e
8
9rpmbuild() {
10 set -x
11 /usr/bin/rpmbuild ${TARGET:+--target $TARGET} $BCONDS --short-circuit "$@" || exit
12}
13
14specfile="${1%.spec}.spec"; shift
15set -- "$specfile" "$@"
16
17tmp=$(awk '/^BuildArch:/ { print $NF}' $specfile)
18if [ "$tmp" ]; then
19 TARGET="$tmp"
20fi
21
22BCONDS=$(./builder --show-bcond-args $specfile)
23
24rpmbuild -bc "$@"
This page took 0.026717 seconds and 4 git commands to generate.