]>
Commit | Line | Data |
---|---|---|
b6b35b6b ER |
1 | #!/bin/sh |
2 | # will build package, skipping %prep and %build stage | |
3 | # i use it a lot! | |
4 | # | |
4845abe9 | 5 | # Usage: |
115e2b8e ER |
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 | |
4845abe9 ER |
8 | # %{__make}: |
9 | # SPECS$ ./compile.sh kdelibs.spec | |
10 | # | |
11 | # See also: SPECS/repackage.sh | |
12 | # | |
b6b35b6b ER |
13 | # -glen 2005-03-03 |
14 | ||
841d39d8 | 15 | dir=$(dirname "$0") |
d868f0b9 ER |
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 | |
841d39d8 | 25 | exec $dir/builder --no-md5 -ncs -nn --short-circuit -bc "$@" |