summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-07-07 19:49:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-07-07 19:50:14 -0400
commit8c1fa1ab5f15c096e76fd2727f41b3bc042a2f3a (patch)
tree40fabf7b10a9688f24e2a135356b7a92a8035640
parentf7be0d5077ef95fa76332c8ede5aec3cb0acf408 (diff)
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 786fd919e..ccf98f625 100644
--- a/Makefile
+++ b/Makefile
@@ -91,7 +91,7 @@ clean:
# generate a file list there.
sdist: clean
@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
@mv git-annex.cabal.orig git-annex.cabal