Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177404996
D60995.1794301543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D60995.1794301543.diff
View Options
diff --git a/tools/tools/git/Makefile b/tools/tools/git/Makefile
--- a/tools/tools/git/Makefile
+++ b/tools/tools/git/Makefile
@@ -1,5 +1,15 @@
SCRIPTS= git-arc.sh git-mfc
-BINDIR?= /usr/local/bin
+PREFIX?= /usr/local
+BINDIR= ${PREFIX}/bin
MAN= git-arc.1 git-mfc.1
+.if ${.MAKE.OS} == "FreeBSD"
+MANDIR= ${PREFIX}/share/man/man
+.else
+# Work with vanilla bmake on alternate OSes, e.g., Linux, macOS, etc.
+MANDIR= ${PREFIX}/share/man
+
+.include <scripts.mk>
+.endif
+
.include <bsd.prog.mk>
diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh
--- a/tools/tools/git/git-arc.sh
+++ b/tools/tools/git/git-arc.sh
@@ -101,7 +101,7 @@
#
setup()
{
- [ -x "${ARC_CMD}" ] || err "arc is required, install devel/arcanist-lib"
+ [ -x "${ARC_CMD}" ] || err "arc is required, install devel/phorgeit-arcanist-lib"
which jq >/dev/null 2>&1 || err "jq is required, install textproc/jq"
if [ "$VERBOSE" ]; then
@@ -152,9 +152,7 @@
# the devel/arcanist-port, which installs a symlink in ${LOCALBASE}/bin
# but conflicts with the archivers/arc port.
#
-: "${LOCALBASE:=$(sysctl -n user.localbase)}"
-: "${LOCALBASE:=/usr/local}"
-: "${ARC_CMD:=${LOCALBASE}/lib/php/arcanist/bin/arc}"
+: "${ARC_CMD:="$(command -v arc)"}"
arc()
{
${ARC_CMD} "$@"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 10, 9:05 AM (3 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41621439
Default Alt Text
D60995.1794301543.diff (1 KB)
Attached To
Mode
D60995: git-arc: add initial non-FreeBSD and `$HOME` install support
Attached
Detach File
Event Timeline