distributions/fedora/build.sh
author František Kučera <franta-hg@frantovo.cz>
Sun, 24 May 2015 19:10:25 +0200
branchv_0
changeset 200 2e351d7c26c4
parent 188 54bacc7ed42b
child 250 aae5009bd0af
permissions -rwxr-xr-x
InfoLister: new listings: --list-java-properties and --list-environment-variables
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@188
     8
# the Free Software Foundation, either version 3 of the License, or
franta-hg@188
     9
# (at your option) any later version.
franta-hg@188
    10
# 
franta-hg@188
    11
# This program is distributed in the hope that it will be useful,
franta-hg@188
    12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@188
    13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@188
    14
# GNU General Public License for more details.
franta-hg@188
    15
# 
franta-hg@188
    16
# You should have received a copy of the GNU General Public License
franta-hg@188
    17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@188
    18
franta-hg@188
    19
DIR="$( cd "$( dirname "$0" )" && pwd )"
franta-hg@180
    20
TOPDIR="$DIR/TMP";
franta-hg@180
    21
DBPATH="$DIR/TMP/RPMDB";
franta-hg@180
    22
franta-hg@180
    23
rm -rf "$TOPDIR";
franta-hg@180
    24
franta-hg@180
    25
rpmbuild \
franta-hg@180
    26
	--define "_dbpath $DBPATH" \
franta-hg@180
    27
	--define "_topdir $TOPDIR" \
franta-hg@180
    28
	-bb \
franta-hg@180
    29
	"$DIR/sql-dk.spec";
franta-hg@180
    30
	
franta-hg@188
    31
cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm $DIR/