From 4f18abf72e423ccaf0d8c64f24c694914f903934 Mon Sep 17 00:00:00 2001 From: Yannick Cote Date: Thu, 18 Oct 2018 14:41:57 -0700 Subject: [PATCH] Packaged spec file needs to be located at root. Signed-off-by: Yannick Cote --- scripts/make-dist.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/make-dist.sh b/scripts/make-dist.sh index 1b365f6390..8cf709c39a 100755 --- a/scripts/make-dist.sh +++ b/scripts/make-dist.sh @@ -11,7 +11,9 @@ package_version=`(git describe --abbrev=0 --match 'v[0-9]*' --always 2>/dev/null echo " DIST setup VERSION: $tree_version" echo $tree_version > VERSION git add VERSION -git add dist/rpm/singularity.spec +# spec file needs to be at the root of the project +cp dist/rpm/singularity.spec . +git add singularity.spec echo " DIST create tarball: $package_name-$package_version.tar.gz" git archive --format=tar.gz --prefix=$package_name/ `git stash create` -o $package_name-$package_version.tar.gz -git reset VERSION dist/rpm/singularity.spec +git reset VERSION singularity.spec