summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-12-17 22:32:20 -0800
committerMichael Forney <mforney@mforney.org>2016-12-18 18:17:04 -0800
commit393306274e1042368f586516cff41c0e222493cb (patch)
tree29e4631ae957be0356be2b0d51cbfac911f3e947 /pkg
parentd2319858ae61e0cee1d65712e622a879c3dda286 (diff)
git: Fetch and install man pages
Diffstat (limited to 'pkg')
-rw-r--r--pkg/git/.gitignore2
-rw-r--r--pkg/git/fetch.rc17
-rw-r--r--pkg/git/gen.rc8
-rw-r--r--pkg/git/man.txt171
-rw-r--r--pkg/git/rev2
-rw-r--r--pkg/git/sha2561
-rw-r--r--pkg/git/url1
7 files changed, 199 insertions, 3 deletions
diff --git a/pkg/git/.gitignore b/pkg/git/.gitignore
new file mode 100644
index 00000000..fd6918da
--- /dev/null
+++ b/pkg/git/.gitignore
@@ -0,0 +1,2 @@
+/git-manpages-2.11.0.tar.xz
+/man
diff --git a/pkg/git/fetch.rc b/pkg/git/fetch.rc
new file mode 100644
index 00000000..9d830d08
--- /dev/null
+++ b/pkg/git/fetch.rc
@@ -0,0 +1,17 @@
+flag e +
+
+@ . ./scripts/fetch-git.rc $*
+
+cd $1
+shift
+
+if([ -e man ])
+ rm -rf man
+
+if(! sha256sum -c sha256 >[2]/dev/null) {
+ curl -L -O -K url
+ sha256sum -c sha256
+}
+
+archive=`{awk '{print $2}' sha256}
+xzcat $archive | pax -r -s '/^\./man/'
diff --git a/pkg/git/gen.rc b/pkg/git/gen.rc
index 12a5e772..dba3a0d3 100644
--- a/pkg/git/gen.rc
+++ b/pkg/git/gen.rc
@@ -376,6 +376,10 @@ 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
-# TODO: Build and install man pages.
+man=`{grep -v '^#' man.txt}
+checkstatus
+for(f in $man)
+ file share/man/$f '$dir'/man/$f 644
+allsrcs=($allsrcs '$dir'/man/$man)
-fetch git
+fetch local
diff --git a/pkg/git/man.txt b/pkg/git/man.txt
new file mode 100644
index 00000000..c24273bf
--- /dev/null
+++ b/pkg/git/man.txt
@@ -0,0 +1,171 @@
+# <xzcat git-manpages-2.11.0.tar.xz | pax -s '/\.\///' '*.[1-9]'
+man5/githooks.5
+man5/gitattributes.5
+man5/gitweb.conf.5
+man5/gitmodules.5
+man5/gitignore.5
+man5/gitrepository-layout.5
+man1/git-verify-commit.1
+man1/git-help.1
+man1/git-checkout-index.1
+man1/git-tag.1
+man1/git-push.1
+man1/git-annotate.1
+man1/git-show-ref.1
+man1/git-mktag.1
+man1/git-shell.1
+man1/git-receive-pack.1
+man1/git-count-objects.1
+man1/git-cat-file.1
+man1/git-rev-parse.1
+man1/git-remote.1
+man1/gitremote-helpers.1
+man1/git-add.1
+man1/git-credential.1
+man1/git-check-attr.1
+man1/git-check-mailmap.1
+man1/git-sh-i18n--envsubst.1
+man1/git-hash-object.1
+man1/git-send-email.1
+man1/git-relink.1
+man1/git-mailinfo.1
+man1/git-archive.1
+man1/git-check-ref-format.1
+man1/git-rerere.1
+man1/git-quiltimport.1
+man1/git-fast-export.1
+man1/git-apply.1
+man1/git-shortlog.1
+man1/git-filter-branch.1
+man1/git-fetch-pack.1
+man1/git-cvsexportcommit.1
+man1/git-mv.1
+man1/git-request-pull.1
+man1/git-bisect.1
+man1/git-stripspace.1
+man1/git-remote-ext.1
+man1/git-for-each-ref.1
+man1/git-remote-fd.1
+man1/git-format-patch.1
+man1/git-http-backend.1
+man1/git-diff-index.1
+man1/git-bundle.1
+man1/git-http-push.1
+man1/git-fsck.1
+man1/git-pull.1
+man1/git-check-ignore.1
+man1/git-cherry-pick.1
+man1/git-upload-pack.1
+man1/git-cherry.1
+man1/git-mergetool.1
+man1/git-prune.1
+man1/git-status.1
+man1/git-credential-store.1
+man1/git-parse-remote.1
+man1/git-commit-tree.1
+man1/git-ls-files.1
+man1/git-show.1
+man1/gitk.1
+man1/git-rm.1
+man1/gitweb.1
+man1/git-sh-i18n.1
+man1/git-commit.1
+man1/git-mergetool--lib.1
+man1/git-cvsimport.1
+man1/git-send-pack.1
+man1/git-web--browse.1
+man1/git-grep.1
+man1/git-gc.1
+man1/git-get-tar-commit-id.1
+man1/git-repack.1
+man1/git-interpret-trailers.1
+man1/git-reflog.1
+man1/git-http-fetch.1
+man1/git-index-pack.1
+man1/git-unpack-file.1
+man1/git-verify-tag.1
+man1/git-mktree.1
+man1/git-var.1
+man1/git-difftool.1
+man1/git-cvsserver.1
+man1/git-branch.1
+man1/git-stash.1
+man1/git-ls-remote.1
+man1/git-gui.1
+man1/git-p4.1
+man1/git-merge-index.1
+man1/git-stage.1
+man1/git-diff-files.1
+man1/git-checkout.1
+man1/git-fmt-merge-msg.1
+man1/git-patch-id.1
+man1/git-citool.1
+man1/git-merge-file.1
+man1/git-mailsplit.1
+man1/git-write-tree.1
+man1/git-log.1
+man1/git-upload-archive.1
+man1/git-worktree.1
+man1/git-revert.1
+man1/git-rev-list.1
+man1/git-imap-send.1
+man1/git-ls-tree.1
+man1/git-init-db.1
+man1/git-update-server-info.1
+man1/git-read-tree.1
+man1/git-merge-tree.1
+man1/git-notes.1
+man1/git-verify-pack.1
+man1/git.1
+man1/git-rebase.1
+man1/git-fsck-objects.1
+man1/git-unpack-objects.1
+man1/git-describe.1
+man1/git-show-branch.1
+man1/git-sh-setup.1
+man1/git-whatchanged.1
+man1/git-config.1
+man1/git-credential-cache.1
+man1/git-blame.1
+man1/git-remote-testgit.1
+man1/git-replace.1
+man1/git-pack-refs.1
+man1/git-pack-redundant.1
+man1/git-archimport.1
+man1/git-reset.1
+man1/git-merge.1
+man1/git-submodule.1
+man1/git-update-index.1
+man1/git-name-rev.1
+man1/git-diff.1
+man1/git-instaweb.1
+man1/git-merge-one-file.1
+man1/git-init.1
+man1/git-prune-packed.1
+man1/git-merge-base.1
+man1/git-show-index.1
+man1/git-update-ref.1
+man1/git-daemon.1
+man1/git-pack-objects.1
+man1/git-clean.1
+man1/git-credential-cache--daemon.1
+man1/git-am.1
+man1/git-diff-tree.1
+man1/git-fast-import.1
+man1/git-fetch.1
+man1/git-clone.1
+man1/git-svn.1
+man1/git-column.1
+man1/git-symbolic-ref.1
+man7/gitcore-tutorial.7
+man7/gittutorial.7
+man7/gittutorial-2.7
+man7/gitcli.7
+man7/gitglossary.7
+man7/gitcvs-migration.7
+man7/gitdiffcore.7
+man7/gitworkflows.7
+man7/gitcredentials.7
+man7/gitrevisions.7
+man7/gitnamespaces.7
+man7/giteveryday.7
diff --git a/pkg/git/rev b/pkg/git/rev
index 45a4fb75..ec635144 100644
--- a/pkg/git/rev
+++ b/pkg/git/rev
@@ -1 +1 @@
-8
+9
diff --git a/pkg/git/sha256 b/pkg/git/sha256
new file mode 100644
index 00000000..2b55d14b
--- /dev/null
+++ b/pkg/git/sha256
@@ -0,0 +1 @@
+b3d3e78829c0b69b727aaca407ecfe239a46db3f354f16189f7a7c10af9528d8 git-manpages-2.11.0.tar.xz
diff --git a/pkg/git/url b/pkg/git/url
new file mode 100644
index 00000000..3c7efbec
--- /dev/null
+++ b/pkg/git/url
@@ -0,0 +1 @@
+url = "https://www.kernel.org/pub/software/scm/git/git-manpages-2.11.0.tar.xz"