From: František Dvořák Date: Tue, 31 Jan 2017 11:43:16 +0000 (+0100) Subject: Make sure the sources directory for RPM exists X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=34b8f3b06c9ab845aa16d2440f8b153b2089c772;p=packaging-rpm-NOW.git Make sure the sources directory for RPM exists --- diff --git a/gen.sh b/gen.sh index fd3d035..f26c1e4 100755 --- a/gen.sh +++ b/gen.sh @@ -19,6 +19,7 @@ rm -rf NOW-${commit}/ cp -a NOW/ NOW-${commit}/ tar --exclude .git -cf - NOW-${commit}/ | pigz --best > NOW-${short}.tar.gz rm -rf NOW-${commit}/ +mkdir -p `rpm --eval %_topdir`/SOURCES/ 2>/dev/null || : cp -vp NOW-${short}.tar.gz NOW.conf README.Fedora now.fc now.te `rpm --eval %_topdir`/SOURCES/ packager="Jenkins Builder "