summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-25 18:29:34 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-25 18:29:34 +0000
commitd7b21cd9fbf0ea873a3de58f374bc5503cad89b7 (patch)
treed801853c3f57e524f5dd91c7512214ed4d5e5d2e
parent64d4293a171f8e7777db8e633990059f5827224d (diff)
downloaddrakx-d7b21cd9fbf0ea873a3de58f374bc5503cad89b7.tar
drakx-d7b21cd9fbf0ea873a3de58f374bc5503cad89b7.tar.gz
drakx-d7b21cd9fbf0ea873a3de58f374bc5503cad89b7.tar.bz2
drakx-d7b21cd9fbf0ea873a3de58f374bc5503cad89b7.tar.xz
drakx-d7b21cd9fbf0ea873a3de58f374bc5503cad89b7.zip
(dist-git) introduce & use it
-rw-r--r--rescue/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/rescue/Makefile b/rescue/Makefile
index 449b6d865..e9591c927 100644
--- a/rescue/Makefile
+++ b/rescue/Makefile
@@ -22,8 +22,20 @@ dist-svn:
tar cfa $(PRODUCT)-$(VERSION).tar.xz $(PRODUCT)-$(VERSION)
rm -rf $(PRODUCT)-$(VERSION)
+dist-git:
+ @cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD rescue tools/install-xml-file-list Makefile.config | xz >$(PRODUCT)-$(VERSION).tar.xz;
+
tar:
- @make dist-svn
+ rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
+ @if [ -e "../.svn" ]; then \
+ $(MAKE) dist-svn; \
+ elif [ -e "../.git" ]; then \
+ $(MAKE) dist-git; \
+ else \
+ echo "Unknown SCM (not SVN nor GIT)";\
+ exit 1; \
+ fi;
+ $(info $(PRODUCT)-$(VERSION).tar.xz is ready)
clean:
rm -f $(RESCUE) kernel_read_part