distributions/fedora/build.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 06 Dec 2014 14:12:59 +0100
branchv_0
changeset 182 4ff7a273f3e8
parent 180 74a6d55da11c
child 188 54bacc7ed42b
permissions -rwxr-xr-x
logging: strip line ends from the error message if not printing stacktrace
     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 .