aboutsummaryrefslogtreecommitdiffstats
path: root/debian/w3m.sh
blob: 7c9c47b2c61f5b7b2c3d7e7a63ed44ea9bb4ca89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Copyright (c) 1999 Fumitoshi UKAI <ukai@debian.or.jp>
# Copyright (c) 1999 Jacobo Tarrio Barreiro <jtarrio@iname.com>
# This program is covered by the GNU General Public License version 2
#

## for I18N variants, not yet: try w3mmee
#W3M=${W3M:-/usr/bin/w3m-ssl-i18n}
#test -x $W3M && exec $W3M "${params[@]}"
#
#for W3M in /usr/bin/w3m-ssl-i18n /usr/bin/w3m-ssl
#do
# test -x $W3M && exec $W3M "${params[@]}"
#done

W3M=/usr/bin/w3m-en
if [ -x /usr/bin/locale ]; then
  eval `locale`
fi
locale=${LC_ALL:-$LANG}
case X"$locale" in
 Xja|Xja_JP|Xja_JP.*)
    [ -x /usr/bin/w3m-ja ] && W3M=/usr/bin/w3m-ja
    [ -x /usr/bin/w3m-ssl-ja ] && W3M=/usr/bin/w3m-ssl-ja
    ;;
 *)
    [ -x /usr/bin/w3m-ssl-en ] && W3M=/usr/bin/w3m-ssl-en
    ;;
esac
exec $W3M "$@"