franta-hg@180: #!/bin/bash franta-hg@180: franta-hg@188: # SQL-DK franta-hg@188: # Copyright © 2014 František Kučera (frantovo.cz) franta-hg@188: # franta-hg@188: # This program is free software: you can redistribute it and/or modify franta-hg@188: # it under the terms of the GNU General Public License as published by franta-hg@250: # the Free Software Foundation, version 3 of the License. franta-hg@188: # franta-hg@188: # This program is distributed in the hope that it will be useful, franta-hg@188: # but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@188: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@188: # GNU General Public License for more details. franta-hg@188: # franta-hg@188: # You should have received a copy of the GNU General Public License franta-hg@188: # along with this program. If not, see . franta-hg@188: franta-hg@188: DIR="$( cd "$( dirname "$0" )" && pwd )" franta-hg@180: TOPDIR="$DIR/TMP"; franta-hg@180: DBPATH="$DIR/TMP/RPMDB"; franta-hg@180: franta-hg@180: rm -rf "$TOPDIR"; franta-hg@180: franta-hg@180: rpmbuild \ franta-hg@180: --define "_dbpath $DBPATH" \ franta-hg@180: --define "_topdir $TOPDIR" \ franta-hg@180: -bb \ franta-hg@180: "$DIR/sql-dk.spec"; franta-hg@180: franta-hg@188: cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm $DIR/