docs: en_US fallback for index.html symlink

It's unfortunate but leaving "upstream" redirector
index.html files without their final target is worse yet;
hope this gets popravleno some day.
This commit is contained in:
Michael Shigorin 2016-06-23 16:46:25 +03:00
parent 3c65c49817
commit 40080a18b7

View File

@ -14,9 +14,9 @@ indexfile="$indexdir/index.html"
[ -s "$indexfile" ] || nonfatal "$indexfile not found"
[ -n "$GLOBAL_LOCALE" ] ||
echo "** warning: GLOBAL_LOCALE empty, maybe use/l10n" >&2
echo "** warning: GLOBAL_LOCALE empty, fallback to en_US (use/l10n?)">&2
LANG="$GLOBAL_LOCALE" indexhtml-update
LANG="${GLOBAL_LOCALE:-en_US}" indexhtml-update
# http://unix.stackexchange.com/questions/94185/convert-soft-to-hardlinks
cp -aH "$indexdir" "$dest"