aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-07 12:11:15 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-07 12:11:15 +0000
commit63837c9165089c9b833e985f95fa71664e4fda33 (patch)
treee69b3bc44c8ca3479ee99a80150932d97df6a3d2
parent1172174b2928381a66d90de38622194b8975e04e (diff)
downloadbootsplash-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--Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 686c54f..3262e63 100644
--- a/Makefile
+++ b/Makefile
@@ -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: