Alois Mahdal
cc50373ed4
Merge grep calls to one
10 years ago
Alois Mahdal
dfbb9f4652
Use .skel suffix for unbuilt files
10 years ago
Alois Mahdal
649959e443
Add tests for submodule importing
10 years ago
Alois Mahdal
65cabc3998
Add basic import tests
10 years ago
Alois Mahdal
a5ceddf69c
Add basic tests for merging
10 years ago
Alois Mahdal
a7e2d18c63
Support directories in test data
10 years ago
Alois Mahdal
41000d80d6
Support specifying inline variables in test
10 years ago
Alois Mahdal
8a18e4e880
Bump version
10 years ago
Alois Mahdal
df34164638
Update manpage
...to better demonstratr new merging capabilities
10 years ago
Alois Mahdal
68d51551f9
Add new test for plain strict mode (no -k|-s, -S)
10 years ago
Alois Mahdal
facca93adc
Improve behavior regarding comments an empty lines
Strict mode now preserves also comments, which makes sense when iniread is used only
to merge ini files verbatim.
10 years ago
Alois Mahdal
a6dfb1bfd7
Choose last item with -1 instead of first
It's not specifed yet which is to be picked, but as FFOO_INI_PATH is now
respected properly, it's more intuitive to pick the last--the last item
on FFOO_INI_PATH wins, which is similar to how PATH works.
10 years ago
Alois Mahdal
19b4671bfb
Skip empty elements in FFOO_INI_PATH
Using empty element results in checking "/file.ini", which is not what one
would want. (One can always explicitly provide path as argument.)
10 years ago
Alois Mahdal
30251a88e3
Hint FFOO_INI_PATH in debug mode
10 years ago
Alois Mahdal
b7765b1063
Factor out code building one file
Increase readability: decrease complexity of the build function and
preserve wandering off too much against 80-char "buoy"
10 years ago
Alois Mahdal
b8c2ba4cf6
Use generic name for build target: "build"
Make it easier to share & sync installer code across projects from the
same family.
10 years ago
Alois Mahdal
b54a44863f
Fix removal of share dir and doc dir
10 years ago
Alois Mahdal
243556f0be
Make (un)installation ore verbose
While still non-intruding (only one line per one real world action)
(un)instalation could be more talkative.
10 years ago
Alois Mahdal
11eac9a6c3
Add note about blocking programs and polling freq
10 years ago
Alois Mahdal
790c68643b
Bump version
10 years ago
Alois Mahdal
b6598427bb
Apply consistent vertical spacing (inspired by PEP8)
10 years ago
Alois Mahdal
4b7b32d90a
Add shebang line to aid syntax HL
10 years ago
Alois Mahdal
2364e90d58
Add types.sh, to work with data types of variables
10 years ago
Alois Mahdal
9828660603
Add variable documentation
Basically as a skeleton to see if this form could be used widely.
10 years ago
Alois Mahdal
371ef0ab89
Fix sha1 commit insterion in version meta-data
10 years ago
Alois Mahdal
ea11feaefc
Update version field asking feature
Now --version-patch does not print metadata, and -proper and -meta have
been added to filter particular part ("proper" semver field w/o
meta-data, or meta-data only).
10 years ago
Alois Mahdal
4dcd7e80b4
Bump version
10 years ago
Alois Mahdal
17027be7ce
Use smarter version format
If not in git (e.g. unpacked tarball), trust the tree and just use
VERSION from config.mk.
Otherwise, take newest tag, and if HEAD is tagged, use that tag
(without the initial "v"). If HEAD is newer, form build meta-data
field from shortened commit hash; furthermore if tree is "dirty" (i.e.
has some files modified, add ".dirty" to the version number.
For example, you just tagged the HEAD with v1.0.1, the version
number is therefore
1.0.1
Now you edit a file. At this moment if you build the project, the
version will be
1.0.1+dirty
If you add + commit that change, the "dirty" has name now:
1.0.1+ga34f8c
but now if you edit a file and re-build, you get "dirty" again:
1.0.1+ga34f8c.dirty
In other words, anytime you see "dirty" in the version info, you know
that the tree was manually modified (which could mean anything from
fixing a typo to completely changing the code).
If there's only g??????, then the code has been modified as well, but at
least you may have reference to the actual tree.
At any rate, any version with any meta-data is purely internal and
should never be used for comparison (your tests should not rely on
version string comparison).
10 years ago
Alois Mahdal
bba8f0a8b8
Describe variables upfront
10 years ago
Alois Mahdal
8ec1d50a93
Use clearer variable names
10 years ago
Alois Mahdal
71bb742278
Remove bogus (dead, forgotten) code
10 years ago
Alois Mahdal
1288953bb3
Allow FFOO_PATH to break to a list of paths
10 years ago
Alois Mahdal
1679aabbc9
Update project docs (TODO / guidelines)
10 years ago
Alois Mahdal
bd4ab8ed17
Change default exit status of usage_is to 2
Similar to grep or test, 1 is reserved for "no", 2 is used for
"incorrect use/syntax"
10 years ago
Alois Mahdal
2bd7a9a3ac
Relax usage_is exitting behavior
Allow usage_is caller specify exit status or suppress exit completely
10 years ago
Alois Mahdal
eddf18d6b4
Check syntax before really sourcing the file
10 years ago
Alois Mahdal
75893ddee7
Make it clear what is module name
10 years ago
Alois Mahdal
c766be2f67
Compact argument routing
10 years ago
Alois Mahdal
429722b039
Remove '--' argument
Since functions cannot start with '-' (and funky names are discouraged
anyway), it only adds more complexity to the arg router.
10 years ago
Alois Mahdal
871dfdf23f
Fork _list_functions_in for narrow listing
10 years ago
Alois Mahdal
2fe76116ce
Add notation to _parse
10 years ago
Alois Mahdal
aff7262b7f
Fix parsing of module from function spec
10 years ago
Alois Mahdal
34ce9b1266
Fix docstring typo
10 years ago
Alois Mahdal
e9ff33d2ad
Update and polish manpage
10 years ago
Alois Mahdal
61873eb636
Name test properly
10 years ago
Alois Mahdal
24d7aae078
Employ more useful (and sane) test contents
10 years ago
Alois Mahdal
389cb94782
Fix regression in path parsing (from ac1c4f1)
10 years ago
Alois Mahdal
86c2613a95
Add docstring for ini.inireader
11 years ago
Alois Mahdal
42273d60a6
Fix behavior regarding empty lines
grep at the end of main pipe ensures not only correct exit status
but also throws away empty lines--but should not do it in strict
mode.
11 years ago
Alois Mahdal
05690649e4
Compact & simplify recon.filter_hosts
11 years ago