0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-02 19:15:59 +00:00
termux-packages/packages/texinfo/update-info-dir.patch
Jia Yuan Lo 7d01bfbc15 chore(main/texinfo): subpackage update-info-dir
* bump(main/update-info-dir): 7.1
2024-05-12 12:30:14 +08:00

36 lines
854 B
Diff

--- a/debian/update-info-dir
+++ b/debian/update-info-dir
@@ -4,7 +4,7 @@
# Copyright 2009, 2014 Norbert Preining
# GPLv2
-INFODIR=/usr/share/info
+INFODIR=@TERMUX_PREFIX@/share/info
set -e
@@ -14,13 +14,7 @@
# the dir file. Unset LANGUAGE and reload /etc/environment to get
# the system wide settings. See bug #536476
unset LANGUAGE
-unset LANG
-if [ -r /etc/environment ] ; then
- . /etc/environment
-fi
-if [ -r /etc/default/locale ] ; then
- . /etc/default/locale
-fi
+export LANG=C.UTF-8
Help ()
{
@@ -28,7 +22,7 @@
SYNOPSIS: update-info-dir [-h,--help] [info-directory]
(re-)creates the index of available documentation in info format
-(the file /usr/share/info/dir) which is usually presented by info browsers
+(the file @TERMUX_PREFIX@/share/info/dir) which is usually presented by info browsers
on startup."
exit 0