Alois Mahdal
fdff7a5b0e
Fix is_imported
11 년 전
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).
11 년 전
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.
11 년 전
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).
11 년 전
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.
11 년 전
Alois Mahdal
ad1330a328
Bump version
11 년 전
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.)
11 년 전
Alois Mahdal
35402e6103
Move expansions to separate functions
Move expansions to functions and comment them properly there.
11 년 전
Alois Mahdal
7cc5d0b000
Add "at" sign to valid URI characters
11 년 전
Alois Mahdal
0b2b073cf8
Update import test (new internal variable)
11 년 전
Alois Mahdal
b35ef7cc21
Remove obsolete variable
11 년 전
Alois Mahdal
d2e43de535
Revamp importing error checking
Die by default but allow "just try"
11 년 전
Alois Mahdal
25c26b3a0a
Add warning ability to ffoo
11 년 전
Alois Mahdal
47fe26efeb
Add routine to check if module has is imported
11 년 전
Alois Mahdal
5b0dfb230d
Track list of imported modules
11 년 전
Alois Mahdal
6d22369d71
Use proper variable for module name
11 년 전
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.
11 년 전
Alois Mahdal
f95d3ef5df
Turn off test for functionality not yet implemented
11 년 전
Alois Mahdal
0a8fc5c1d3
Do not pollute script namespace
11 년 전
Alois Mahdal
dd431a3537
Bump version
11 년 전
Alois Mahdal
77b3e95a81
Fix pipe determining the last tag
11 년 전
Alois Mahdal
085fb532cd
Remove excess space
11 년 전
Alois Mahdal
440da31d9f
Bump version
11 년 전
Alois Mahdal
1f0e0bd747
Do not delete dist tarballs
11 년 전
Alois Mahdal
0a66b88227
Mark stage as devel
11 년 전
Alois Mahdal
71e2ce53e2
Add support for SemVer to tarball
Instead of creating SemVer name on-premise, it will be hard-coded inside
the tarball
11 년 전
Alois Mahdal
4a2ef4d3e0
Add support for development stages in get_version()
11 년 전
Alois Mahdal
80df7401c7
Move ffoo(3) example to ffoo.1.sh and re-insert on-premise
11 년 전
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.
11 년 전
Alois Mahdal
cc50373ed4
Merge grep calls to one
11 년 전
Alois Mahdal
dfbb9f4652
Use .skel suffix for unbuilt files
11 년 전
Alois Mahdal
649959e443
Add tests for submodule importing
11 년 전
Alois Mahdal
65cabc3998
Add basic import tests
11 년 전
Alois Mahdal
a5ceddf69c
Add basic tests for merging
11 년 전
Alois Mahdal
a7e2d18c63
Support directories in test data
11 년 전
Alois Mahdal
41000d80d6
Support specifying inline variables in test
11 년 전
Alois Mahdal
8a18e4e880
Bump version
11 년 전
Alois Mahdal
df34164638
Update manpage
...to better demonstratr new merging capabilities
11 년 전
Alois Mahdal
68d51551f9
Add new test for plain strict mode (no -k|-s, -S)
11 년 전
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.
11 년 전
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.
11 년 전
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.)
11 년 전
Alois Mahdal
30251a88e3
Hint FFOO_INI_PATH in debug mode
11 년 전
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"
11 년 전
Alois Mahdal
b8c2ba4cf6
Use generic name for build target: "build"
Make it easier to share & sync installer code across projects from the
same family.
11 년 전
Alois Mahdal
b54a44863f
Fix removal of share dir and doc dir
11 년 전
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.
11 년 전
Alois Mahdal
11eac9a6c3
Add note about blocking programs and polling freq
11 년 전
Alois Mahdal
790c68643b
Bump version
11 년 전
Alois Mahdal
b6598427bb
Apply consistent vertical spacing (inspired by PEP8)
11 년 전