summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--contrib/PKGBUILD2
-rw-r--r--docs/Makefile13
-rw-r--r--docs/index.txt2
4 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 16c7298..de607c2 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,6 @@ install-docs: docs
install -m644 docs/*.5 $(DESTDIR)/usr/share/man/man5/
install -m644 docs/*.8 $(DESTDIR)/usr/share/man/man8/
install -d $(DESTDIR)/usr/share/doc/netcfg/contrib
- install -m644 docs/*.html $(DESTDIR)/usr/share/doc/netcfg/
install -m644 contrib/{*.hook,pm-utils.handler} $(DESTDIR)/usr/share/doc/netcfg/contrib/
docs:
diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD
index 12bdec6..7f089f2 100644
--- a/contrib/PKGBUILD
+++ b/contrib/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=netcfg
pkgver=%pkgver%
pkgrel=1
pkgdesc="Network configuration and profile scripts"
-url="http://archlinux.org"
+url="http://archlinux.org/netcfg/"
license=("BSD")
backup=(etc/iftab etc/conf.d/netcfg)
depends=("coreutils" "dhcpcd" "iproute2")
diff --git a/docs/Makefile b/docs/Makefile
index f8671f6..ef05303 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -3,16 +3,19 @@
MANPAGES = netcfg.8 netcfg-profiles.5
WEBPAGES = index.html features.html $(MANPAGES:%=%.html)
-.PHONY: all clean
-
-all: $(MANPAGES) $(WEBPAGES)
+.PHONY: manpages website clean
+manpages: $(MANPAGES)
+website: website.tar.xz
$(MANPAGES): %: %.txt footer.txt
a2x -d manpage -f manpage -a manversion=$(VERSION) $<
$(WEBPAGES): %.html: %.txt
- asciidoc -a disable-javascript -a version=$(VERSION) $<
+ asciidoc -a disable-javascript -a linkcss -a max-width=960px $<
+
+website.tar.xz: $(WEBPAGES)
+ tar --transform "s%^%netcfg/%" -cJf $@ $^ -C /etc/asciidoc/stylesheets asciidoc.css
clean:
- -@rm -vf $(MANPAGES) $(WEBPAGES) 2>/dev/null
+ -@rm -vf $(MANPAGES) $(WEBPAGES) website.tar.xz 2>/dev/null
diff --git a/docs/index.txt b/docs/index.txt
index 4fb4e4a..e2e7d24 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -1,4 +1,4 @@
-netcfg {version}
+netcfg home page
----------------
About