diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-25 18:29:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-25 18:29:34 +0000 |
commit | ef15b8b2d81ac219ce54ad3e1d8ad674bf51f326 (patch) | |
tree | d801853c3f57e524f5dd91c7512214ed4d5e5d2e /rescue/Makefile | |
parent | 9bd226ba19ad74495cc789effee301093bc699da (diff) | |
download | drakx-backup-do-not-use-ef15b8b2d81ac219ce54ad3e1d8ad674bf51f326.tar drakx-backup-do-not-use-ef15b8b2d81ac219ce54ad3e1d8ad674bf51f326.tar.gz drakx-backup-do-not-use-ef15b8b2d81ac219ce54ad3e1d8ad674bf51f326.tar.bz2 drakx-backup-do-not-use-ef15b8b2d81ac219ce54ad3e1d8ad674bf51f326.tar.xz drakx-backup-do-not-use-ef15b8b2d81ac219ce54ad3e1d8ad674bf51f326.zip |
(dist-git) introduce & use it
Diffstat (limited to 'rescue/Makefile')
-rw-r--r-- | rescue/Makefile | 14 |
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 |