mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Make it possible to use a different tar command.
Mmakefile:
Make it possible to specify a different tar command on the
command line. The tar supplied with OS X on my machine doesn't
handle symlinks in the same way as GNU tar, so I need to use
the latter (which is called gnutar).
This commit is contained in:
@@ -434,6 +434,8 @@ TODO: compiler/notes/todo.html
|
||||
|
||||
# Generally you should do a `mmake realclean' before doing `mmake tar'.
|
||||
|
||||
TAR = tar
|
||||
|
||||
.PHONY: tar
|
||||
tar: $(GENERATED_DOCS)
|
||||
touch Mmake.params
|
||||
@@ -490,7 +492,7 @@ tar: $(GENERATED_DOCS)
|
||||
mv $$ROOTNAME/bytecode stuff-to-exclude; \
|
||||
mv $$ROOTNAME/extras/quickcheck stuff-to-exclude; \
|
||||
mv $$ROOTNAME mercury-srcdist-$(VERSION); \
|
||||
tar --exclude ".git" --dereference -cf - \
|
||||
$(TAR) --exclude ".git" --dereference -cf - \
|
||||
mercury-srcdist-$(VERSION) | \
|
||||
gzip -9 > mercury-srcdist-$(VERSION).tar.gz; \
|
||||
mv mercury-srcdist-$(VERSION) $$ROOTNAME; \
|
||||
|
||||
Reference in New Issue
Block a user