remaster/doc/lib-head+tail

14 lines
229 B
Plaintext
Raw Permalink Normal View History

2018-04-30 16:12:45 +00:00
#!/bin/bash
#remaster lib
2018-05-07 22:28:32 +00:00
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
2018-04-30 16:12:45 +00:00
2018-05-20 19:16:19 +00:00
#<function> [param]
function <function>() {
#Code of <function>
}
2018-05-12 22:02:09 +00:00
#this func is standalone executable
[ -n "$1" ] && {
2018-05-20 19:16:19 +00:00
<function> $@
2018-05-12 22:02:09 +00:00
}