File: figlet-utf8

package info (click to toggle)
figlet 2.2.5-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: ansic: 3,611; sh: 184; makefile: 80; lisp: 37
file content (8 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh

# Add -C utf8 if locale is UTF-8 and user didn't specify -d (might lack utf8.flc) or -C (different locale enforced)
if locale | grep -q UTF-8 && ! echo "$@" | grep -q -- '-d' && ! echo "$@" | grep -q -- '-C'; then
    exec /usr/bin/figlet-figlet -C utf8 "$@"
else
    exec /usr/bin/figlet-figlet "$@"
fi