first version.
[build-srcpkg.git] / res / builder / build-srcpkg / example / 7.cmdline.sh
blob1a41eea7d383db5acfd8d193a054732d8625ef33
2 . tools/build-srcpkg/shlib/incfile.shlib
4 # TBD: write value in tmp, it should be generated by _EVL
5 SRCPKG_DIR_FULL=$PWD
7 #loadimi ${SRCPKG_DIR_FULL}/tools/build-srcpkg/info/SrcPkgDirs.imi
8 loadimi tools/build-srcpkg/info/SrcPkgDirs.imi
10 inc tools/build-srcpkg/shlib/worklist.shlib
12 # include tools/build-srcpkg/shlib/build.imi
13 inc tools/build-srcpkg/shlib/cmdline.shlib
14 #inc build/shlib/pre_build.shlib
17 SRCBAK_DIR="../dvar-n-doc/$(date +%Y-%m)"
19 scriptversion=v0.1.0-231025
20 version="build.sh $scriptversion
22 Copyright 2020 Free Software Foundation, Inc.
23 There is NO warranty. You may redistribute this software
24 under the terms of the GNU General Public License.
25 For more information about these matters, see the files named COPYING."
27 usage="Usage: $prog [OPTION]
29 It's a file of compile.
30 https://repo.or.cz/devutils.git
32 Options:
33 -f force to re-compile again even if code is compiled before.
34 -v version info.
35 -h help info.
37 sub-cmd:
38 clean clean output files.
39 bak clean and backup a tarball in the upper dir.
41 --help display help info in detail.
42 --version display version information in detail.
44 Simple example:
45 $ $prog -f
46 $ $prog
47 $ $prog clean
48 $ $prog bak
50 Email bug reports or enhancement requests to skeletone@126.com .
53 cmd_opt "$@"