1 #!/bin/bash
2
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4 TOPDIR="$DIR/TMP";
5 DBPATH="$DIR/TMP/RPMDB";
6
7 rm -rf "$TOPDIR";
8
9 rpmbuild \
10 --define "_dbpath $DBPATH" \
11 --define "_topdir $TOPDIR" \
12 -bb \
13 "$DIR/sql-dk.spec";
14
15 cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm .