[projects/geninitrd] fix make dist for git
glen
glen at pld-linux.org
Tue Dec 24 01:53:18 CET 2013
commit 2f06eeaa510b8a9437a07fcb11478184f5a35da7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Dec 24 02:52:50 2013 +0200
fix make dist for git
Makefile | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/Makefile b/Makefile
index 910773b..5b34cc9 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ FILES := Makefile $(NAME).sysconfig $(NAME) functions $(FILES_MODS) $(FILES_ADD
prefix := /usr
mandir := $(prefix)/share/man
sbindir := /sbin
-libdir := /lib/$(NAME)
+libdir := /lib/geninitrd
udevdir := $(libdir)/udev-rules
sysconfigdir := /etc/sysconfig
@@ -41,16 +41,18 @@ tag:
clean:
rm -f $(NAME).8
+ rm -f $(NAME)-*.tar $(NAME)-*.tar.gz
.PHONY: ChangeLog
ChangeLog:
- svn up
./changelog.sh
-$(NAME)-$(VERSION).tar.gz: $(NAME).8 ChangeLog
- rm -f *.tar.gz
+$(NAME)-$(VERSION).tar.gz: $(NAME)-$(VERSION).tar
+ gzip -9 $<
+
+$(NAME)-$(VERSION).tar: $(NAME).8 ChangeLog
rm -rf $(NAME)-$(VERSION)
- LC_ALL=C TZ=GMT svn export . $(NAME)-$(VERSION)
+ install -d $(NAME)-$(VERSION)
+ git archive HEAD --prefix $(NAME)-$(VERSION)/ -o $@
cp -p $? $(NAME)-$(VERSION)
- tar -czvf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
- -rm -rf $(NAME)-$(VERSION)
+ tar -rvf $@ --owner=root --group=root $(NAME)-$(VERSION)/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/2f06eeaa510b8a9437a07fcb11478184f5a35da7
More information about the pld-cvs-commit
mailing list