]>
Commit | Line | Data |
---|---|---|
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 | ||
15 | dir=$(dirname "$0") | |
16 | if [ $# = 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 | |
24 | fi | |
25 | exec $dir/builder --no-md5 -ncs -nn --short-circuit -bc "$@" |