Fredrik Fornwall
5 years ago
4 changed files with 20 additions and 65 deletions
@ -1,34 +1,22 @@ |
|||
diff -u -r ../fish-3.0.0/share/tools/create_manpage_completions.py ./share/tools/create_manpage_completions.py
|
|||
--- ../fish-3.0.0/share/tools/create_manpage_completions.py 2018-12-28 13:01:03.000000000 +0000
|
|||
+++ ./share/tools/create_manpage_completions.py 2018-12-28 22:54:12.034220150 +0000
|
|||
@@ -865,29 +865,7 @@
|
|||
diff -u -r ../fish-3.1.0/share/tools/create_manpage_completions.py ./share/tools/create_manpage_completions.py
|
|||
--- ../fish-3.1.0/share/tools/create_manpage_completions.py 2020-02-12 14:04:07.000000000 +0000
|
|||
+++ ./share/tools/create_manpage_completions.py 2020-02-15 21:40:21.963831000 +0000
|
|||
@@ -953,17 +953,7 @@
|
|||
if os.getenv("MANPATH"): |
|||
parent_paths = os.getenv("MANPATH").strip().split(':') |
|||
parent_paths = os.getenv("MANPATH").strip().split(":") |
|||
else: |
|||
- # Some systems have manpath, others have `man --path` (like Haiku).
|
|||
- for prog in [['manpath'], ['man', '--path']]:
|
|||
- for prog in [["manpath"], ["man", "--path"]]:
|
|||
- try:
|
|||
- proc = subprocess.Popen(prog, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|||
- except OSError: # Command does not exist, keep trying
|
|||
- proc = subprocess.Popen(
|
|||
- prog, stdout=subprocess.PIPE, stderr=subprocess.PIPE
|
|||
- )
|
|||
- except OSError: # Command does not exist, keep trying
|
|||
- continue
|
|||
- break # Command exists, use it.
|
|||
- break # Command exists, use it.
|
|||
- manpath, err_data = proc.communicate()
|
|||
- parent_paths = manpath.decode().strip().split(':')
|
|||
- if (not parent_paths) or (proc and proc.returncode > 0):
|
|||
- # HACK: Use some fallbacks in case we can't get anything else.
|
|||
- # `mandoc` does not provide `manpath` or `man --path` and $MANPATH might not be set.
|
|||
- # The alternative is reading its config file (/etc/man.conf)
|
|||
- if os.path.isfile('/etc/man.conf'):
|
|||
- data = open('/etc/man.conf', 'r')
|
|||
- for line in data:
|
|||
- if ('manpath' in line or 'MANPATH' in line):
|
|||
- p = line.split(' ')[1]
|
|||
- p = p.split()[0]
|
|||
- parent_paths.append(p)
|
|||
- if (not parent_paths):
|
|||
- sys.stderr.write("Unable to get the manpath, falling back to /usr/share/man:/usr/local/share/man. Please set $MANPATH if that is not correct.\n")
|
|||
- parent_paths = ["/usr/share/man", "/usr/local/share/man"]
|
|||
- parent_paths = manpath.decode().strip().split(":")
|
|||
+ parent_paths = ["@TERMUX_PREFIX@/share/man"]
|
|||
result = [] |
|||
for parent_path in parent_paths: |
|||
for section in ['man1', 'man6', 'man8']: |
|||
if (not parent_paths) or (proc and proc.returncode > 0): |
|||
# HACK: Use some fallbacks in case we can't get anything else. |
|||
# `mandoc` does not provide `manpath` or `man --path` and $MANPATH might not be set. |
|||
|
@ -1,20 +0,0 @@ |
|||
diff -u -r ../fish-3.0.0/share/functions/__fish_print_help.fish ./share/functions/__fish_print_help.fish
|
|||
--- ../fish-3.0.0/share/functions/__fish_print_help.fish 2018-12-28 13:01:03.000000000 +0000
|
|||
+++ ./share/functions/__fish_print_help.fish 2018-12-28 22:55:42.761223014 +0000
|
|||
@@ -22,7 +22,7 @@
|
|||
set mfish -mfish |
|||
end |
|||
if test -e "$__fish_data_dir/man/man1/$item.1" |
|||
- set help (nroff -c -man $mfish -t $rLL "$__fish_data_dir/man/man1/$item.1" 2>/dev/null)
|
|||
+ set help (mandoc "$__fish_datadir/man/man1/$item.1" ^/dev/null)
|
|||
else if test -e "$__fish_data_dir/man/man1/$item.1.gz" |
|||
set help (gunzip -c "$__fish_data_dir/man/man1/$item.1.gz" 2>/dev/null | nroff -c -man $mfish -t $rLL 2>/dev/null) |
|||
end |
|||
@@ -80,6 +80,6 @@
|
|||
# skip it |
|||
end |
|||
end |
|||
- end | ul # post-process with `ul`, to interpret the old-style grotty escapes
|
|||
+ end
|
|||
echo # print a trailing blank line |
|||
end |
@ -1,12 +0,0 @@ |
|||
diff -u -r ../fish-3.0.1/src/env.cpp ./src/env.cpp
|
|||
--- ../fish-3.0.1/src/env.cpp 2019-02-11 12:13:15.000000000 +0000
|
|||
+++ ./src/env.cpp 2019-02-13 22:19:56.975817836 +0000
|
|||
@@ -1663,7 +1663,7 @@
|
|||
auto pwuid = getpwuid(geteuid()); |
|||
const char *uname = pwuid ? pwuid->pw_name : NULL; |
|||
// /tmp/fish.user |
|||
- std::string tmpdir = "/tmp/fish.";
|
|||
+ std::string tmpdir = "@TERMUX_PREFIX@/tmp/fish.";
|
|||
if (uname) { |
|||
tmpdir.append(uname); |
|||
} |
Loading…
Reference in new issue