about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-03 21:53:48 +0000
committerJune McEnroe <june@causal.agency>2020-05-03 21:53:48 +0000
commit382728fda878048b7da1fa6c4c338bd216475a12 (patch)
treebfb94a0ad6cd57fcaf371168d6c87a87d8c4e01e /Makefile
parentMark tarballs .PRECIOUS (diff)
downloadexman-382728fda878048b7da1fa6c4c338bd216475a12.tar.gz
exman-382728fda878048b7da1fa6c4c338bd216475a12.zip
Restrict extracted paths more tightly
199M -> 136M
Diffstat (limited to '')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 492064c..80c41b6 100644
--- a/Makefile
+++ b/Makefile
@@ -24,28 +24,30 @@ all: exman ${SYSTEMS}
 	mkdir -p $@
 	${TAR} -x -f $< -C $@ --strip-components ${STRIP.$@} ${FILES.$@}
 
-.PRECIOUS: netbsd-man.tar netbsd-comp.tar
-
 netbsd: netbsd-man.tar netbsd-comp.tar
 	mkdir -p $@
 	${TAR} -x -f netbsd-man.tar -C $@ --strip-components ${STRIP.$@} ${FILES.$@}
 	${TAR} -x -f netbsd-comp.tar -C $@ --strip-components ${STRIP.$@} ${FILES.$@}
 
-.PRECIOUS: openbsd-man.tar openbsd-comp.tar
+.PRECIOUS: netbsd-man.tar netbsd-comp.tar
 
 openbsd: openbsd-man.tar openbsd-comp.tar
 	mkdir -p $@
 	${TAR} -x -f openbsd-man.tar -C $@ --strip-components ${STRIP.$@} ${FILES.$@}
 	${TAR} -x -f openbsd-comp.tar -C $@ --strip-components ${STRIP.$@} ${FILES.$@}
 
-FILES.freebsd = ./usr/share/man/
-FILES.netbsd = ./usr/share/man/
-FILES.openbsd = ./usr/share/man/
+.PRECIOUS: openbsd-man.tar openbsd-comp.tar
+
+FILES.freebsd = './usr/share/man/man[1-9]/'
+FILES.netbsd = './usr/share/man/man[1-9]*/'
+FILES.openbsd = './usr/share/man/man[1-9]*/'
+FILES.linux = '*/man[1-9]/'
+FILES.posix = '*/man[0-3]p/'
 
 STRIP.freebsd = 4
-STRIP.linux = 1
 STRIP.netbsd = 4
 STRIP.openbsd = 4
+STRIP.linux = 1
 STRIP.posix = 1
 
 clean:
e 2019-07-27Add c11.pdfJune McEnroe 2019-07-27Move pdf script to MakefileJune McEnroe 2019-07-27Update macOS neovim to 0.3.8June McEnroe Which somehow still doesn't include my man fix. 2019-07-27Rewrite port makefiles consistentlyJune McEnroe 2019-07-27Rewrite Makefile once more with more organizationJune McEnroe 2019-07-27Reference png.h in bin.7June McEnroe 2019-07-27Revert "Use scheme to style HTMLs"June McEnroe This reverts commit 4b7d5161a30645b0a23691687ef1aafdda62d3bb. I don't know why but I don't like it. 2019-07-27Remove scheme text linkJune McEnroe No standard base64 encoder so no way to maintain it. 2019-07-26Update Dark.terminalJune McEnroe Why are the blobs so much bigger now? 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe When? Now. 2019-07-24Remove histedit from bitJune McEnroe