distributions/fedora/build.sh
author František Kučera <franta-hg@frantovo.cz>
Fri, 20 Dec 2019 12:55:01 +0100
branchv_0
changeset 251 97dbb1015d98
parent 250 aae5009bd0af
permissions -rwxr-xr-x
sqldk-relpipe convergence: integer type (relpipe already support signed integers)
franta-hg@180
     1
#!/bin/bash
franta-hg@180
     2
franta-hg@188
     3
# SQL-DK
franta-hg@188
     4
# Copyright © 2014 František Kučera (frantovo.cz)
franta-hg@188
     5
# 
franta-hg@188
     6
# This program is free software: you can redistribute it and/or modify
franta-hg@188
     7
# it under the terms of the GNU General Public License as published by
franta-hg@250
     8
# the Free Software Foundation, version 3 of the License.
franta-hg@188
     9
# 
franta-hg@188
    10
# This program is distributed in the hope that it will be useful,
franta-hg@188
    11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@188
    12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@188
    13
# GNU General Public License for more details.
franta-hg@188
    14
# 
franta-hg@188
    15
# You should have received a copy of the GNU General Public License
franta-hg@188
    16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@188
    17
franta-hg@188
    18
DIR="$( cd "$( dirname "$0" )" && pwd )"
franta-hg@180
    19
TOPDIR="$DIR/TMP";
franta-hg@180
    20
DBPATH="$DIR/TMP/RPMDB";
franta-hg@180
    21
franta-hg@180
    22
rm -rf "$TOPDIR";
franta-hg@180
    23
franta-hg@180
    24
rpmbuild \
franta-hg@180
    25
	--define "_dbpath $DBPATH" \
franta-hg@180
    26
	--define "_topdir $TOPDIR" \
franta-hg@180
    27
	-bb \
franta-hg@180
    28
	"$DIR/sql-dk.spec";
franta-hg@180
    29
	
franta-hg@188
    30
cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm $DIR/