depth=0 ucdepth=-1
_base64() {
- { uuencode -m - <"$1" \
+ # busybox does not ship base64, only uuencode. Other platforms might need base64 instead
+ if which uuencode; then
+ uuencode -m - <"$1" \
| sed '1d; :X;$!{N;bX;}; s;\n;;g; s;=\+;;g;'
- } || {
+ else
base64 <"$1" \
| sed ':X;$!{N;bX;}; s;\n;;g; s;=\+;;g;'
- }
+ fi
}
{ "${0%/*}"/cgilite/html-sh.sed || cat; } \