summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess2014-08-19 17:30:10 -0400
committerJoey Hess2014-08-19 17:30:10 -0400
commit4766442124483e6c0965f02e6a2f19ce0cb962be (patch)
tree155a3ccb823cec9464832ad654021c902849ae0f /Makefile
parent5365334ac2b7ad16b6be6c7518b366718b9abee4 (diff)
bleargh45678etc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2dcca27a..6a4ba4d1 100644
--- a/Makefile
+++ b/Makefile
@@ -23,9 +23,9 @@ install:
install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor
install -s dist/build/propellor/propellor $(DESTDIR)/usr/bin/propellor
mkdir -p dist/gittmp
- $(CABAL) sdist
- tar tf dist/propellor-*.tar.gz | perl -ne 's!propellor-[^/]+/!!; print unless $_ eq "\n"' > dist/list-sources
- tar c -T dist/list-sources | (cd dist/gittmp && tar x)
+ $(CABAL) sdist | (cd dist/gittmp && tar x --strip-components=1)
+ # cabal sdist does not preserve symlinks, so copy over file
+ cd dist/gittmp && for f in $$(find -type f); do rm -f $$f; cp -a ../../$$f $$f; done
cd dist/gittmp && git init && \
git add . \
&& git commit -q -m "distributed version of propellor" \