Alois Mahdal
fdff7a5b0e
Fix is_imported
vor 10 Jahren
Alois Mahdal
1d6c469905
Handle the pretty-printer import correctly
Use the meta-library and handle that oputside __echo (i.e. do not try to
import it kajillion times).
vor 10 Jahren
Alois Mahdal
5732eeec55
Add mkpretty.sh meta-library
Purpose of this library is to import the actual pretty-printing library
based on FFOO_MKPRETTY value or fall back to mkpretty_plain.
vor 10 Jahren
Alois Mahdal
e8b1bad067
Add support for init function
A library can now have init function to allow for more dynamic behavior.
The function's name must be __ffoo_NAME__init, where NAME is the library
name.
Note that the init exit status is used as exit status of the `ffoo
import NAME` call (or `ffoo try_import NAME`) and overrides exit
status of the sourcing (which must always be zero anyway).
vor 10 Jahren
Alois Mahdal
b3372e82f8
Rename function not to be confused with try_import
try_import does not aim to import anything, whereas this function's aim
is to import stuff.
vor 10 Jahren
Alois Mahdal
ad1330a328
Bump version
vor 10 Jahren
Alois Mahdal
7cbb2a241a
Fix building of markdown files
Code include expansion overwrote result of variable name expansion.
(This had no effect so far since there are no variables in markdown
files.)
vor 10 Jahren
Alois Mahdal
35402e6103
Move expansions to separate functions
Move expansions to functions and comment them properly there.
vor 10 Jahren
Alois Mahdal
7cc5d0b000
Add "at" sign to valid URI characters
vor 10 Jahren
Alois Mahdal
0b2b073cf8
Update import test (new internal variable)
vor 10 Jahren
Alois Mahdal
b35ef7cc21
Remove obsolete variable
vor 10 Jahren
Alois Mahdal
d2e43de535
Revamp importing error checking
Die by default but allow "just try"
vor 10 Jahren
Alois Mahdal
25c26b3a0a
Add warning ability to ffoo
vor 10 Jahren
Alois Mahdal
47fe26efeb
Add routine to check if module has is imported
vor 10 Jahren
Alois Mahdal
5b0dfb230d
Track list of imported modules
vor 10 Jahren
Alois Mahdal
6d22369d71
Use proper variable for module name
vor 10 Jahren
Alois Mahdal
acfae929eb
Make ffoo import test readable ... a bit
* Split into functions as appropriate;
* add docstrings;
* reduce redundancy;
* run everything in C locale (=> update oracles),
* add subtest boundaries to output.
vor 10 Jahren
Alois Mahdal
f95d3ef5df
Turn off test for functionality not yet implemented
vor 10 Jahren
Alois Mahdal
0a8fc5c1d3
Do not pollute script namespace
vor 10 Jahren
Alois Mahdal
dd431a3537
Bump version
vor 10 Jahren
Alois Mahdal
77b3e95a81
Fix pipe determining the last tag
vor 10 Jahren
Alois Mahdal
085fb532cd
Remove excess space
vor 10 Jahren
Alois Mahdal
440da31d9f
Bump version
vor 10 Jahren
Alois Mahdal
1f0e0bd747
Do not delete dist tarballs
vor 10 Jahren
Alois Mahdal
0a66b88227
Mark stage as devel
vor 10 Jahren
Alois Mahdal
71e2ce53e2
Add support for SemVer to tarball
Instead of creating SemVer name on-premise, it will be hard-coded inside
the tarball
vor 10 Jahren
Alois Mahdal
4a2ef4d3e0
Add support for development stages in get_version()
vor 10 Jahren
Alois Mahdal
80df7401c7
Move ffoo(3) example to ffoo.1.sh and re-insert on-premise
vor 10 Jahren
Alois Mahdal
af7b225c07
Add ability to include code examples from "real" files
Now we can keep examples as a "real" shell scripts, taking advantage
of ability to test them or edit them with proper syntax HL.
Setup will now automatically insert them and indent properly as code.
Small drawback is that we cannot build manpages separately, but since
all building is to be trivial this is not a big deal.
vor 10 Jahren
Alois Mahdal
cc50373ed4
Merge grep calls to one
vor 10 Jahren
Alois Mahdal
dfbb9f4652
Use .skel suffix for unbuilt files
vor 10 Jahren
Alois Mahdal
649959e443
Add tests for submodule importing
vor 10 Jahren
Alois Mahdal
65cabc3998
Add basic import tests
vor 10 Jahren
Alois Mahdal
a5ceddf69c
Add basic tests for merging
vor 10 Jahren
Alois Mahdal
a7e2d18c63
Support directories in test data
vor 10 Jahren
Alois Mahdal
41000d80d6
Support specifying inline variables in test
vor 10 Jahren
Alois Mahdal
8a18e4e880
Bump version
vor 10 Jahren
Alois Mahdal
df34164638
Update manpage
...to better demonstratr new merging capabilities
vor 10 Jahren
Alois Mahdal
68d51551f9
Add new test for plain strict mode (no -k|-s, -S)
vor 10 Jahren
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.
vor 10 Jahren
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.
vor 10 Jahren
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.)
vor 10 Jahren
Alois Mahdal
30251a88e3
Hint FFOO_INI_PATH in debug mode
vor 10 Jahren
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"
vor 10 Jahren
Alois Mahdal
b8c2ba4cf6
Use generic name for build target: "build"
Make it easier to share & sync installer code across projects from the
same family.
vor 10 Jahren
Alois Mahdal
b54a44863f
Fix removal of share dir and doc dir
vor 10 Jahren
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.
vor 10 Jahren
Alois Mahdal
11eac9a6c3
Add note about blocking programs and polling freq
vor 10 Jahren
Alois Mahdal
790c68643b
Bump version
vor 10 Jahren
Alois Mahdal
b6598427bb
Apply consistent vertical spacing (inspired by PEP8)
vor 10 Jahren