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