From 0cb0d8e10cbcb9b3461e4d8f13b10a0502064433 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 25 Jan 2012 18:29:56 +0000 Subject: (dist-git) introduce & use it --- perl-install/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'perl-install/Makefile') diff --git a/perl-install/Makefile b/perl-install/Makefile index 6ea394882..ab86ab977 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -68,8 +68,20 @@ dist-svn: localcopy tar cfa $(PACKAGE)-$(PKGVERSION).tar.xz $(PACKAGE)-$(PKGVERSION) rm -rf $(PACKAGE)-$(PKGVERSION) +dist-git: + @cd ..; git archive --prefix=$(PACKAGE)-$(PKGVERSION)/ HEAD perl-install/{[^i]*,int*} $(OTHERS) kernel/list_modules.pm Makefile.config | xz >$(PACKAGE)-$(PKGVERSION).tar.xz; + tar: - @make dist-svn + rm -rf $(PACKAGE)*.tar* $(PACKAGE)-$(PKGVERSION) + 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 $(PACKAGE)-$(PKGVERSION).tar.xz is ready) # rules to build a distributable rpm -- cgit v1.2.1