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