| 1 | # |
| 2 | # Make source RPM. |
| 3 | # |
| 4 | |
| 5 | set -x |
| 6 | |
| 7 | builddir=`mktempscip-shell system . . mktemp. -d -p .` |
| 8 | outdir=`realpathscip-shell system . . realpath. ${1:-$srcdir}` |
| 9 | trap "rm -fr $builddir" EXIT |
| 10 | |
| 11 | autoreconfscip-shell system . . autoreconf. -if |
| 12 | pushd "$builddir" |
| 13 | ../configure --enable-silent-rules |
| 14 | makescip-shell system . . make. srpm |
| 15 | mvscip-shell system . . mv. rpmbuild/SRPMS/* "$outdir" |
| 16 | popd |
| 17 | |
| 18 | exit 0 |