first version.
[build-srcpkg.git] / res / example / 3.cmplib.sh
blob49f3f09ae58ebbf109e25d5c5b11ac733abb7e02
2 . tools/build-srcpkg/shlib/incfile.shlib
4 inc tools/build-srcpkg/cmplib.shlib
7 SRCBAK_DIR="../dvar-n-doc/$(date +%Y-%m)"
9 scriptversion=v0.1.0-231025
10 version="build.sh $scriptversion
12 Copyright 2020 Free Software Foundation, Inc.
13 There is NO warranty. You may redistribute this software
14 under the terms of the GNU General Public License.
15 For more information about these matters, see the files named COPYING."
17 usage="Usage: $prog [OPTION]
19 It's a file of compile.
20 https://repo.or.cz/devutils.git
22 Options:
23 -f force to re-compile again even if code is compiled before.
24 -v version info.
25 -h help info.
27 sub-cmd:
28 clean clean output files.
29 bak clean and backup a tarball in the upper dir.
31 --help display help info in detail.
32 --version display version information in detail.
34 Simple example:
35 $ $prog -f
36 $ $prog
37 $ $prog clean
38 $ $prog bak
40 Email bug reports or enhancement requests to skeletone@126.com .
43 cmd_opt "$@"
45 ################################################
46 # for single exe build by func in cmpl.sh.
47 ################################################
49 build_proc
51 exit