Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a85ade
commit 33ea80a
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh -e | ||
|
||
patch -p1 < pager.patch | ||
|
||
cat > configure.local <<EOF | ||
PREFIX=/usr | ||
MANDIR=/usr/share/man | ||
LIBDIR=/usr/lib | ||
CFLAGS="$CFLAGS" | ||
MANPATH_DEFAULT=/usr/share/man | ||
LN="ln -sf" | ||
EOF | ||
|
||
MANPATH_BASE=/usr/share/man ./configure | ||
make | ||
make -j1 DESTDIR="$1" base-install lib-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0b0c8f67958c1569ead4b690680c337984b879dfd2ad4648d96924332fd99528 mandoc-1.14.3.tar.gz | ||
fb623f6852749a4b09a9e54ef30a121c2f52473ab114286f3822ca0c9509721e pager.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- mdocml-1.13.4/main.c.orig | ||
+++ mdocml-1.13.4/main.c | ||
@@ -1042,7 +1042,7 @@ | ||
if (pager == NULL || *pager == '\0') | ||
pager = getenv("PAGER"); | ||
if (pager == NULL || *pager == '\0') | ||
- pager = "more -s"; | ||
+ pager = "less"; | ||
cp = mandoc_strdup(pager); | ||
|
||
/* | ||
@@ -1063,15 +1063,6 @@ | ||
break; | ||
} | ||
|
||
- /* For less(1), use the tag file. */ | ||
- | ||
- if ((cmdlen = strlen(argv[0])) >= 4) { | ||
- cp = argv[0] + cmdlen - 4; | ||
- if (strcmp(cp, "less") == 0) { | ||
- argv[argc++] = mandoc_strdup("-T"); | ||
- argv[argc++] = tag_files->tfn; | ||
- } | ||
- } | ||
argv[argc++] = tag_files->ofn; | ||
argv[argc] = NULL; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
http://mdocml.bsd.lv/snapshots/mandoc-1.14.3.tar.gz | ||
patches/pager.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.14.3 1 |