about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-03 18:40:46 +0000
committerJune McEnroe <june@causal.agency>2020-05-03 18:42:16 +0000
commit12af3b51ee11579680794a236d2abaeb7f63e2b0 (patch)
tree40b00137b9a520d24607c97b0fff1d1c64e57e49
downloadexman-12af3b51ee11579680794a236d2abaeb7f63e2b0.tar.gz
exman-12af3b51ee11579680794a236d2abaeb7f63e2b0.zip
Add FreeBSD, NetBSD, OpenBSD, Linux, POSIX
-rw-r--r--.gitignore6
-rw-r--r--Makefile32
-rw-r--r--freebsd.url1
-rw-r--r--linux.url1
-rw-r--r--netbsd.url1
-rw-r--r--openbsd.url1
-rw-r--r--posix.url1
7 files changed, 43 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..066e06a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.tar
+freebsd/
+linux/
+netbsd/
+openbsd/
+posix/
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e52672a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+CURL ?= curl
+TAR ?= tar
+
+SYSTEMS += freebsd
+SYSTEMS += linux
+SYSTEMS += netbsd
+SYSTEMS += openbsd
+SYSTEMS += posix
+
+all: ${SYSTEMS}
+
+.SUFFIXES: .tar .url
+
+.url.tar:
+	${CURL} -f -o $@ "$$(cat $<)"
+
+.tar:
+	mkdir -p $@
+	${TAR} -x -f $< -C $@ --strip-components ${STRIP.$@} ${FILES.$@}
+
+FILES.freebsd = ./usr/share/man/
+FILES.netbsd = ./usr/share/man/
+FILES.openbsd = ./usr/share/man/
+
+STRIP.freebsd = 4
+STRIP.linux = 1
+STRIP.netbsd = 4
+STRIP.openbsd = 4
+STRIP.posix = 1
+
+clean:
+	rm -fr ${SYSTEMS} ${SYSTEMS:=.tar}
diff --git a/freebsd.url b/freebsd.url
new file mode 100644
index 0000000..e9f4183
--- /dev/null
+++ b/freebsd.url
@@ -0,0 +1 @@
+https://download.FreeBSD.org/ftp/releases/amd64/12.1-RELEASE/base.txz
diff --git a/linux.url b/linux.url
new file mode 100644
index 0000000..ef0aef5
--- /dev/null
+++ b/linux.url
@@ -0,0 +1 @@
+https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-5.06.tar.xz
diff --git a/netbsd.url b/netbsd.url
new file mode 100644
index 0000000..66cfa3b
--- /dev/null
+++ b/netbsd.url
@@ -0,0 +1 @@
+https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.0/shared/ALL/man.tgz
diff --git a/openbsd.url b/openbsd.url
new file mode 100644
index 0000000..0be553e
--- /dev/null
+++ b/openbsd.url
@@ -0,0 +1 @@
+https://cdn.openbsd.org/pub/OpenBSD/6.6/amd64/man66.tgz
diff --git a/posix.url b/posix.url
new file mode 100644
index 0000000..80c4f8b
--- /dev/null
+++ b/posix.url
@@ -0,0 +1 @@
+https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2013-a.tar.xz