author | František Kučera <franta-hg@frantovo.cz> |
Mon, 29 Sep 2014 10:34:54 +0200 | |
branch | v_0 |
changeset 181 | 80333d0ae763 |
parent 180 | 74a6d55da11c |
child 188 | 54bacc7ed42b |
permissions | -rwxr-xr-x |
franta-hg@180 | 1 |
#!/bin/bash |
franta-hg@180 | 2 |
|
franta-hg@180 | 3 |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
franta-hg@180 | 4 |
TOPDIR="$DIR/TMP"; |
franta-hg@180 | 5 |
DBPATH="$DIR/TMP/RPMDB"; |
franta-hg@180 | 6 |
|
franta-hg@180 | 7 |
rm -rf "$TOPDIR"; |
franta-hg@180 | 8 |
|
franta-hg@180 | 9 |
rpmbuild \ |
franta-hg@180 | 10 |
--define "_dbpath $DBPATH" \ |
franta-hg@180 | 11 |
--define "_topdir $TOPDIR" \ |
franta-hg@180 | 12 |
-bb \ |
franta-hg@180 | 13 |
"$DIR/sql-dk.spec"; |
franta-hg@180 | 14 |
|
franta-hg@180 | 15 |
cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm . |