]> git.pld-linux.org Git - packages/rpm-build-tools.git/blame_incremental - compile.sh
make lftp usage configurable in env
[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# Usage:
6# make only %build stage (i.e. after %prep has been done), for example after
7# modifying some sources for more complicated specs whose %build is not just
8# %{__make}:
9# SPECS$ ./compile.sh kdelibs.spec
10#
11# See also: SPECS/repackage.sh
12#
13# -glen 2005-03-03
14
15dir=$(dirname "$0")
16if [ $# = 0 ]; then
17 # if no spec name passed, glob *.spec
18 set -- *.spec
19 if [ ! -f "$1" -o $# -gt 1 ]; then
20 echo >&2 "ERROR: Too many or too few .spec files found"
21 echo >&2 "Usage: ${0##*/} PACKAGE.spec"
22 exit 1
23 fi
24fi
25exec $dir/builder --no-md5 -ncs -nn --short-circuit -bc "$@"
This page took 0.026678 seconds and 4 git commands to generate.