pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

hub: Use some SUBST-fu to avoid possible confusion in hub(1) man page



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Tue Feb 27 17:31:57 2018 +0100
Changeset:	b5056fa0774086ca1ae35bd85be624285edcaf64

Modified Files:
	hub/Makefile

Log Message:
hub: Use some SUBST-fu to avoid possible confusion in hub(1) man page

In the hub(1) man page instead of using `hub' to refer to `hub',
`git' is always used to refer to `hub'. This is not true in general
and only applies when `hub' is an alias to `git'. Apply a SUBST
class to address that.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b5056fa0774086ca1ae35bd85be624285edcaf64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 hub/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diffs:
diff --git a/hub/Makefile b/hub/Makefile
index 93819b020b..c28d1a3e09 100644
--- a/hub/Makefile
+++ b/hub/Makefile
@@ -15,6 +15,15 @@ GO_SRCPATH=		github.com/github/hub
 
 DEPENDS+=		git-base>=1.7.3:../../devel/git-base
 
+SUBST_CLASSES+=		man
+SUBST_STAGE.man=	pre-configure
+SUBST_MESSAGE.man=	Fix hub name in hub(1) man page
+SUBST_FILES.man=	man/hub.1
+SUBST_SED.man+=		-e 's/\\fBgit/\\fBhub/g'
+SUBST_SED.man+=		-e 's/\$$ git/$$ hub/'
+SUBST_SED.man+=		-e '/\$$ GITHUB_HOST=/ s/ git clone / hub clone /'
+SUBST_SED.man+=		-e 's/\.SS "git/.SS "hub/'
+
 INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1
 
 CHECK_RELRO_SKIP+=	bin/hub


Home | Main Index | Thread Index | Old Index