Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix LN * Fix wpa Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix lint Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix-network Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix script Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
24
buildroot/package/gettext-tiny/gettext-wrapper
Normal file
24
buildroot/package/gettext-tiny/gettext-wrapper
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Thanks to "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
# for this gettext replacement.
|
||||
|
||||
while [ ${#} -ne 0 ]; do
|
||||
case "${1}" in
|
||||
(-h) printf "no help\n"; return 0;;
|
||||
(-V) printf "0.0.0\n"; return 0;;
|
||||
(-d|--domain) shift 2;;
|
||||
(-d*|--domain=*) shift 1;;
|
||||
(-e|-E|-n) shift 1;;
|
||||
(-s) shift 1;; # Ignore?
|
||||
(-*) printf "invalid option '%s'\n" "${1}" >&2; return 1;;
|
||||
(*) break;;
|
||||
esac
|
||||
done
|
||||
|
||||
case ${#} in
|
||||
(0) printf "missing arguments\n" >&2; return 1;;
|
||||
(1) printf "%s" "${1}";;
|
||||
(2) printf "%s" "${2}";;
|
||||
(*) printf "too many arguments\n" >&2; return 1;;
|
||||
esac
|
||||
Reference in New Issue
Block a user