mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +00:00
21 lines
327 B
Bash
Executable File
21 lines
327 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export LANG=ru_RU.KOI8-R
|
|
unset SDCV_PAGER
|
|
|
|
PATH_TO_SDCV="$1"
|
|
|
|
if test ! -x "$PATH_TO_SDCV"; then
|
|
echo "Can not find sdcv binary $1" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if ! "$PATH_TO_SDCV" -n --utf8-output man | tail -n -1 | iconv -f utf-8 -t utf-8 >/dev/null; then
|
|
echo "utf8 output didn't work" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|