Generate sdist tarball name from git-annex.cabal 'Version:'.
Instead of generating with `cabal sdist`.
This commit is contained in:
parent
79a71d9ba6
commit
2e0965eba9
1 changed files with 2 additions and 4 deletions
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Create target directory
|
# Create target directory
|
||||||
cabal sdist
|
sdist_dir=git-annex-$(grep '^Version:' git-annex.cabal | sed -re 's/Version: *//')
|
||||||
sdist_dir=$(basename dist/*.tar.gz .tar.gz)
|
mkdir --parents dist/$sdist_dir
|
||||||
rm -f dist/*.tar.gz
|
|
||||||
mkdir dist/$sdist_dir
|
|
||||||
|
|
||||||
find . \( -name .git -or -name dist -or -name cabal-dev \) -prune \
|
find . \( -name .git -or -name dist -or -name cabal-dev \) -prune \
|
||||||
-or -not -name \\*.orig -not -type d -print \
|
-or -not -name \\*.orig -not -type d -print \
|
||||||
|
|
Loading…
Reference in a new issue