|
Harald Hoyer |
1ee1e3 |
From 4ce3a1b1bbd08c3d5031632b88036335d2d2dfee Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
1ee1e3 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
1ee1e3 |
Date: Wed, 14 Mar 2012 15:19:39 +0100
|
|
Harald Hoyer |
1ee1e3 |
Subject: [PATCH] precompile doc
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
---
|
|
Harald Hoyer |
1ee1e3 |
Makefile | 27 +++++++++++++++++----------
|
|
Harald Hoyer |
1ee1e3 |
dracut.spec | 6 ++++--
|
|
Harald Hoyer |
1ee1e3 |
2 files changed, 21 insertions(+), 12 deletions(-)
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
diff --git a/Makefile b/Makefile
|
|
Harald Hoyer |
1ee1e3 |
index bd27d06..f0af487 100644
|
|
Harald Hoyer |
1ee1e3 |
--- a/Makefile
|
|
Harald Hoyer |
1ee1e3 |
+++ b/Makefile
|
|
Harald Hoyer |
1ee1e3 |
@@ -13,9 +13,10 @@ manpages = dracut.8 dracut.cmdline.7 dracut.conf.5 dracut-catimages.8
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
.PHONY: install clean archive rpm testimage test all check AUTHORS doc
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
-doc: $(manpages) dracut.html
|
|
Harald Hoyer |
1ee1e3 |
all: syncheck
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
+doc: $(manpages) dracut.html
|
|
Harald Hoyer |
1ee1e3 |
+
|
|
Harald Hoyer |
1ee1e3 |
%: %.xml
|
|
Harald Hoyer |
1ee1e3 |
xsltproc -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
@@ -26,7 +27,8 @@ dracut.html: dracut.asc $(manpages)
|
|
Harald Hoyer |
1ee1e3 |
asciidoc -a numbered -d book -b docbook -o dracut.xml dracut.asc
|
|
Harald Hoyer |
1ee1e3 |
xsltproc -o dracut.html --xinclude -nonet \
|
|
Harald Hoyer |
1ee1e3 |
--stringparam draft.mode yes \
|
|
Harald Hoyer |
1ee1e3 |
- --stringparam html.stylesheet http://docs.redhat.com/docs/en-US/Common_Content/css/default.css \
|
|
Harald Hoyer |
1ee1e3 |
+ --stringparam html.stylesheet \
|
|
Harald Hoyer |
1ee1e3 |
+ http://docs.redhat.com/docs/en-US/Common_Content/css/default.css \
|
|
Harald Hoyer |
1ee1e3 |
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl dracut.xml
|
|
Harald Hoyer |
1ee1e3 |
rm dracut.xml
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
@@ -57,8 +59,10 @@ install: doc
|
|
Harald Hoyer |
1ee1e3 |
install -m 0644 dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir); \
|
|
Harald Hoyer |
1ee1e3 |
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants; \
|
|
Harald Hoyer |
1ee1e3 |
mkdir -p $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants; \
|
|
Harald Hoyer |
1ee1e3 |
- ln -s ../dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants/dracut-shutdown.service; \
|
|
Harald Hoyer |
1ee1e3 |
- ln -s ../dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants/dracut-shutdown.service; \
|
|
Harald Hoyer |
1ee1e3 |
+ ln -s ../dracut-shutdown.service \
|
|
Harald Hoyer |
1ee1e3 |
+ $(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants/dracut-shutdown.service; \
|
|
Harald Hoyer |
1ee1e3 |
+ ln -s ../dracut-shutdown.service \
|
|
Harald Hoyer |
1ee1e3 |
+ $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants/dracut-shutdown.service; \
|
|
Harald Hoyer |
1ee1e3 |
fi
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
clean:
|
|
Harald Hoyer |
1ee1e3 |
@@ -72,13 +76,16 @@ clean:
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
archive: dracut-$(VERSION)-$(GITVERSION).tar.bz2
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
-dist: dracut-$(VERSION).tar.gz
|
|
Harald Hoyer |
1ee1e3 |
-
|
|
Harald Hoyer |
1ee1e3 |
-dracut-$(VERSION).tar.bz2:
|
|
Harald Hoyer |
1ee1e3 |
- git archive --format=tar $(VERSION) --prefix=dracut-$(VERSION)/ |bzip2 > dracut-$(VERSION).tar.bz2
|
|
Harald Hoyer |
1ee1e3 |
+dist: dracut-$(VERSION).tar.bz2
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
-dracut-$(VERSION).tar.gz:
|
|
Harald Hoyer |
1ee1e3 |
- git archive --format=tar $(VERSION) --prefix=dracut-$(VERSION)/ |gzip > dracut-$(VERSION).tar.gz
|
|
Harald Hoyer |
1ee1e3 |
+dracut-$(VERSION).tar.bz2: doc
|
|
Harald Hoyer |
1ee1e3 |
+ git archive --format=tar $(VERSION) --prefix=dracut-$(VERSION)/ > dracut-$(VERSION).tar
|
|
Harald Hoyer |
1ee1e3 |
+ mkdir -p dracut-$(VERSION)
|
|
Harald Hoyer |
1ee1e3 |
+ cp $(manpages) dracut.html dracut-$(VERSION)
|
|
Harald Hoyer |
1ee1e3 |
+ tar -rf dracut-$(VERSION).tar dracut-$(VERSION)/*.[0-9] dracut-$(VERSION)/dracut.html
|
|
Harald Hoyer |
1ee1e3 |
+ rm -fr dracut-$(VERSION).tar.bz2 dracut-$(VERSION)
|
|
Harald Hoyer |
1ee1e3 |
+ bzip2 -9 dracut-$(VERSION).tar
|
|
Harald Hoyer |
1ee1e3 |
+ rm -f dracut-$(VERSION).tar
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
rpm: dracut-$(VERSION).tar.bz2
|
|
Harald Hoyer |
1ee1e3 |
rpmbuild=$$(mktemp -d -t rpmbuild-dracut.XXXXXX); src=$$(pwd); \
|
|
Harald Hoyer |
1ee1e3 |
diff --git a/dracut.spec b/dracut.spec
|
|
Harald Hoyer |
1ee1e3 |
index 7a058ae..be7ba8a 100644
|
|
Harald Hoyer |
1ee1e3 |
--- a/dracut.spec
|
|
Harald Hoyer |
1ee1e3 |
+++ b/dracut.spec
|
|
Harald Hoyer |
1ee1e3 |
@@ -40,9 +40,11 @@ BuildRequires: docbook-style-xsl docbook-dtds libxslt
|
|
Harald Hoyer |
1ee1e3 |
%endif
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
%if 0%{?suse_version}
|
|
Harald Hoyer |
1ee1e3 |
-BuildRequires: docbook-xsl-stylesheets libxslt
|
|
Harald Hoyer |
1ee1e3 |
+-BuildRequires: docbook-xsl-stylesheets libxslt
|
|
Harald Hoyer |
1ee1e3 |
%endif
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
+BuildRequires: asciidoc
|
|
Harald Hoyer |
1ee1e3 |
+
|
|
Harald Hoyer |
1ee1e3 |
%if 0%{?fedora} > 12 || 0%{?rhel}
|
|
Harald Hoyer |
1ee1e3 |
# no "provides", because dracut does not offer
|
|
Harald Hoyer |
1ee1e3 |
# all functionality of the obsoleted packages
|
|
Harald Hoyer |
1ee1e3 |
@@ -161,7 +163,7 @@ git am -p1 %{patches}
|
|
Harald Hoyer |
1ee1e3 |
%endif
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
%build
|
|
Harald Hoyer |
1ee1e3 |
-make
|
|
Harald Hoyer |
1ee1e3 |
+make all
|
|
Harald Hoyer |
1ee1e3 |
|
|
Harald Hoyer |
1ee1e3 |
%install
|
|
Harald Hoyer |
1ee1e3 |
%if 0%{?fedora} || 0%{?rhel}
|