diff options
author | Joey Hess <joey@kitenet.net> | 2011-07-02 14:53:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-07-02 14:58:01 -0400 |
commit | 648827861024783ef6fa9c03e8ca5210c68fc7cb (patch) | |
tree | d608e5bed336aa567da6af9e339af94f29f131b0 /Makefile | |
parent | 80459918307730f9abc9c6b681d4888758b6d522 (diff) |
cabal sdist: plan C
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -87,4 +87,12 @@ clean: rm -rf doc/.ikiwiki html dist find . \( -name \*.o -or -name \*.hi \) -exec rm {} \; +# Workaround for cabal sdist not running Setup hooks, so I cannot +# 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 -type f -print)!i" < git-annex.cabal.orig > git-annex.cabal + @cabal sdist + @mv git-annex.cabal.orig git-annex.cabal + .PHONY: $(bins) test install |