File: dot.bash_profile.pl

package info (click to toggle)
language-env 0.64
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,588 kB
  • ctags: 125
  • sloc: perl: 6,243; makefile: 83; tcl: 64; sh: 18
file content (42 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42

print "# Setup the locale\n";
print "unset LC_ALL\n";
print "export LANG=${LOCALE}\n";
print "export LANGUAGE=${LANGUAGE_PO}\n\n";
if (${LOCALE} eq "sr_YU") {
    if (!($CYR_ENC eq "UTF-8")) {
	print XCYRILLIC  "export LC_MESSAGES=en_GB\n";
    }
}
# print "export PATH=${MAINDIR}/bin:" . '${PATH}' . "\n";

if ( $CYR_ENC eq "ISO8859-2" ) {
    print <<'EOF';
# Setup the console font and keyboard
case `tty` in
/dev/tty[0-9]*|/dev/vc/*) 
    if which consolechars >/dev/null 2>&1; then
        consolechars -f lat2-16
        consolechars --sfm iso02
        consolechars --acm iso02
    else
        setfont lat2-16
        setfont -m trivial.trans
    fi
    loadkeys sr >/dev/null 2>&1
    echo -e -n "\\033(K" > `tty`
    ;;
esac
EOF
} else {
    print <<'EOF';
# Setup Cyrillic on console
case `tty` in
/dev/tty[0-9]*|/dev/vc/*) 
    if which cyr >/dev/null 2>&1; then
	cyr
    fi
    ;;
esac
EOF
}