diff options
author | Joey Hess <joey@kitenet.net> | 2014-08-19 16:55:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-08-19 16:55:44 -0400 |
commit | b9f1e87604bab5786e530318e7f3b15ccb737b30 (patch) | |
tree | 90a73554aea6ed4e55ba2d5ff08be9681bce84ec /Makefile | |
parent | 1ada0f10141405c8c20decddf893eb5186be8581 (diff) |
use git archive, rather than cabal sdist for making single-commit git repo
This makes the symlinks be preserved, which it seems cabal does not do.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -22,9 +22,8 @@ dist/setup-config: propellor.cabal install: install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor install -s dist/build/propellor/propellor $(DESTDIR)/usr/bin/propellor - $(CABAL) sdist mkdir -p dist/gittmp - cat dist/propellor-*.tar.gz | (cd dist/gittmp && tar zx --strip-components=1) + git archive HEAD - | (cd dist/gittmp && tar zx) cd dist/gittmp && git init && \ git add . \ && git commit -q -m "distributed version of propellor" \ |