Skip to content

Commit

Permalink
Packaged spec file needs to be located at root.
Browse files Browse the repository at this point in the history
Signed-off-by: Yannick Cote <yhcote@gmail.com>
  • Loading branch information
yhcote committed Oct 18, 2018
1 parent c85b504 commit 4f18abf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/make-dist.sh
Expand Up @@ -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

0 comments on commit 4f18abf

Please sign in to comment.