summaryrefslogtreecommitdiffstats
path: root/0026-Makefile-fixup-tarball-Makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to '0026-Makefile-fixup-tarball-Makefile.patch')
-rw-r--r--0026-Makefile-fixup-tarball-Makefile.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/0026-Makefile-fixup-tarball-Makefile.patch b/0026-Makefile-fixup-tarball-Makefile.patch
new file mode 100644
index 0000000..f4c4a26
--- /dev/null
+++ b/0026-Makefile-fixup-tarball-Makefile.patch
@@ -0,0 +1,22 @@
+From 26ab7b07a6c7bff7b62a59ab880e735017076141 Mon Sep 17 00:00:00 2001
+From: Harald Hoyer <harald@redhat.com>
+Date: Mon, 15 Apr 2013 11:53:03 +0200
+Subject: [PATCH] Makefile: fixup tarball Makefile
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 6bda766..d3798c6 100644
+--- a/Makefile
++++ b/Makefile
+@@ -158,7 +158,7 @@ dracut-$(VERSION).tar.bz2: doc
+ git archive --format=tar $(VERSION) --prefix=dracut-$(VERSION)/ > dracut-$(VERSION).tar
+ mkdir -p dracut-$(VERSION)
+ cp $(manpages) dracut.html dracut-$(VERSION)
+- sed 's/^RELEASEDVERSION =.*/RELEASEDVERSION = $(VERSION)/' Makefile > dracut-$(VERSION)/Makefile
++ git show $(VERSION):Makefile | sed 's/^RELEASEDVERSION =.*/RELEASEDVERSION = $(VERSION)/' > dracut-$(VERSION)/Makefile
+ tar --owner=root --group=root -rf dracut-$(VERSION).tar dracut-$(VERSION)/*.[0-9] dracut-$(VERSION)/dracut.html dracut-$(VERSION)/Makefile
+ rm -fr dracut-$(VERSION).tar.bz2 dracut-$(VERSION)
+ bzip2 -9 dracut-$(VERSION).tar