distributions/fedora/build.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 06 Dec 2014 14:38:41 +0100
branchv_0
changeset 183 1bb5abfb0655
parent 180 74a6d55da11c
child 188 54bacc7ed42b
permissions -rwxr-xr-x
parallelized DB connection testing
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
180
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
#!/bin/bash
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
TOPDIR="$DIR/TMP";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
DBPATH="$DIR/TMP/RPMDB";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
rm -rf "$TOPDIR";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
rpmbuild \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
	--define "_dbpath $DBPATH" \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
	--define "_topdir $TOPDIR" \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
	-bb \
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
	"$DIR/sql-dk.spec";
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
	
74a6d55da11c RPM: simple script/spec for building .rpm for Fedora
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
cp "$TOPDIR"/RPMS/*/sql-dk-*.rpm .