use ustar format and omit filnames with colons. new hackage requirements
The tarball on hackage will no longer correspond to the git tag. Oh well.
This commit is contained in:
parent
13902f50d0
commit
8d45a82988
1 changed files with 4 additions and 3 deletions
|
@ -9,11 +9,12 @@ mkdir --parents 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 \
|
||||||
| perl -ne "print unless length >= 100 - length q{$sdist_dir}" \
|
| perl -ne "print unless length >= 100 - length q{$sdist_dir}" \
|
||||||
| xargs cp --parents --target-directory dist/$sdist_dir
|
| grep -v ':' \
|
||||||
|
| xargs cp --parents --target-directory dist/$sdist_dir
|
||||||
|
|
||||||
cd dist
|
cd dist
|
||||||
tar -caf $sdist_dir.tar.gz $sdist_dir
|
tar --format=ustar -caf $sdist_dir.tar.gz $sdist_dir
|
||||||
|
|
||||||
# Check that tarball can be unpacked by cabal.
|
# Check that tarball can be unpacked by cabal.
|
||||||
# It's picky about tar longlinks etc.
|
# It's picky about tar longlinks etc.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue