Generate sdist tarball name from git-annex.cabal 'Version:'.

Instead of generating with `cabal sdist`.
This commit is contained in:
Nathan Collins 2012-06-12 02:45:53 -07:00
parent 79a71d9ba6
commit 2e0965eba9

View file

@ -1,10 +1,8 @@
#!/bin/bash
# Create target directory
cabal sdist
sdist_dir=$(basename dist/*.tar.gz .tar.gz)
rm -f dist/*.tar.gz
mkdir dist/$sdist_dir
sdist_dir=git-annex-$(grep '^Version:' git-annex.cabal | sed -re 's/Version: *//')
mkdir --parents dist/$sdist_dir
find . \( -name .git -or -name dist -or -name cabal-dev \) -prune \
-or -not -name \\*.orig -not -type d -print \