summaryrefslogtreecommitdiff
path: root/pkg/git
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-12-18 16:28:38 -0800
committerMichael Forney <mforney@mforney.org>2016-12-19 00:05:57 -0800
commit2420bcc6b191d1db5d324a4b4dd597da25843338 (patch)
tree895d2fc168ff855a1dac3b77ecdd91f1cf84cc88 /pkg/git
parent393306274e1042368f586516cff41c0e222493cb (diff)
Compress man pages
Diffstat (limited to 'pkg/git')
-rw-r--r--pkg/git/.gitignore1
-rw-r--r--pkg/git/fetch.rc6
-rw-r--r--pkg/git/gen.rc6
3 files changed, 6 insertions, 7 deletions
diff --git a/pkg/git/.gitignore b/pkg/git/.gitignore
index fd6918da..4e2e55f0 100644
--- a/pkg/git/.gitignore
+++ b/pkg/git/.gitignore
@@ -1,2 +1,3 @@
/git-manpages-2.11.0.tar.xz
/man
+/man.ninja
diff --git a/pkg/git/fetch.rc b/pkg/git/fetch.rc
index 9d830d08..bec188d5 100644
--- a/pkg/git/fetch.rc
+++ b/pkg/git/fetch.rc
@@ -5,8 +5,8 @@ flag e +
cd $1
shift
-if([ -e man ])
- rm -rf man
+if([ -e src/man ])
+ rm -rf src/man
if(! sha256sum -c sha256 >[2]/dev/null) {
curl -L -O -K url
@@ -14,4 +14,4 @@ if(! sha256sum -c sha256 >[2]/dev/null) {
}
archive=`{awk '{print $2}' sha256}
-xzcat $archive | pax -r -s '/^\./man/'
+xzcat $archive | pax -r -s ',^\.,src/man,'
diff --git a/pkg/git/gen.rc b/pkg/git/gen.rc
index dba3a0d3..210389d9 100644
--- a/pkg/git/gen.rc
+++ b/pkg/git/gen.rc
@@ -376,10 +376,8 @@ file share/git-core/templates/info/exclude '$srcdir'/templates/info--exclude 644
# Skip the sample hooks and install an empty directory instead.
dir share/git-core/templates/hooks 755
-man=`{grep -v '^#' man.txt}
+srcs=`{grep -v '^#' man.txt}
checkstatus
-for(f in $man)
- file share/man/$f '$dir'/man/$f 644
-allsrcs=($allsrcs '$dir'/man/$man)
+man -d man $srcs
fetch local