]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Makefile: fixup tarball Makefile
authorHarald Hoyer <harald@redhat.com>
Mon, 15 Apr 2013 09:53:03 +0000 (11:53 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 15 Apr 2013 09:53:03 +0000 (11:53 +0200)
Makefile

index 6bda76609e865774933949776d87f55fce30c866..d3798c64fcc9307e51319384f14650f2baddff5a 100644 (file)
--- 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