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:
parent
f7be0d5077
commit
8c1fa1ab5f
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue