From 8c1fa1ab5f15c096e76fd2727f41b3bc042a2f3a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 7 Jul 2011 19:49:24 -0400 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3