diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-10-07 12:11:15 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-10-07 12:11:15 +0000 |
commit | 63837c9165089c9b833e985f95fa71664e4fda33 (patch) | |
tree | e69b3bc44c8ca3479ee99a80150932d97df6a3d2 | |
parent | 1172174b2928381a66d90de38622194b8975e04e (diff) | |
download | bootsplash-63837c9165089c9b833e985f95fa71664e4fda33.tar bootsplash-63837c9165089c9b833e985f95fa71664e4fda33.tar.gz bootsplash-63837c9165089c9b833e985f95fa71664e4fda33.tar.bz2 bootsplash-63837c9165089c9b833e985f95fa71664e4fda33.tar.xz bootsplash-63837c9165089c9b833e985f95fa71664e4fda33.zip |
refactor svn make dist (in preparation for a git make dist)
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -20,11 +20,21 @@ install: dis: dist dist: clean - rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* +dist: + rm -rf ../$(NAME)-$(VERSION).tar* + @if [ -e ".svn" ]; then \ + $(MAKE) dist-svn; \ + else \ + echo "Unknown SCM (not SVN nor GIT)";\ + exit 1; \ + fi; + $(info $(NAME)-$(VERSION).tar.bz2 is ready) + +dist-svn: + rm -rf $(NAME)-$(VERSION) svn export -q -rBASE . $(NAME)-$(VERSION) find $(NAME)-$(VERSION) -name .cvsignore |xargs rm -rf - tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION) - bzip2 -9f ../$(NAME)-$(VERSION).tar + tar jcf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) rm -rf $(NAME)-$(VERSION) clean: |