add a nasty workaround for a nasty cabal limitation

It croaks on long filenames.. probably >= 100 chars
100 characters was a (historial) limit on filenames in tarballs.
This commit is contained in:
Joey Hess 2011-07-07 19:49:24 -04:00
parent f7be0d5077
commit 8c1fa1ab5f

View file

@ -91,7 +91,7 @@ clean:
# generate a file list there. # generate a file list there.
sdist: clean sdist: clean
@if [ ! -e git-annex.cabal.orig ]; then cp git-annex.cabal git-annex.cabal.orig; fi @if [ ! -e git-annex.cabal.orig ]; then cp git-annex.cabal git-annex.cabal.orig; fi
@sed -e "s!\(Extra-Source-Files: \).*!\1$(shell find . -name .git -prune -or -not -name \\*.orig -not -type d -print)!i" < git-annex.cabal.orig > git-annex.cabal @sed -e "s!\(Extra-Source-Files: \).*!\1$(shell find . -name .git -prune -or -not -name \\*.orig -not -type d -print | perl -ne 'print unless length >= 100')!i" < git-annex.cabal.orig > git-annex.cabal
@cabal sdist @cabal sdist
@mv git-annex.cabal.orig git-annex.cabal @mv git-annex.cabal.orig git-annex.cabal