| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Pandoc doesn't handle files with diacritics properly, as can be seen in:
$ git notes --ref=refs/notes/ci-logs show 014d4b731abab519c50fe4c7dec94ce1291d2716 | grep pandoc
pandoc: /tmp/uuid-tmpname.diacritic and spaces.2e6006db-7196-3795-135a-4a4e5a8e7d4d: openBinaryFile: invalid argument (invalid character)
I'll stick with spaces only, and when I eventually replace Pandoc with
something smaller and simpler
(as seen in #td-e8d9a644-ead4-af05-8582-eef22af90633), I'll return to
this issue, and inject diacritics back.
|
| |
|
|
|
|
| |
works with it
|
| |
|
| |
|
|
|
|
|
|
| |
generated files
As the tests do a "make clean", which would erase the existing generated files.
|
| |
|
|
|
|
|
| |
Use the locale files over the locale variables. Adapt the "install" and
"uninstall" targets to it, and remove the locale test.
|
| |
|
| |
|
|
|
|
| |
Implements #task-1f103822-c865-254c-f6b6-4968f2fb473e.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The tests were relying on the unspecified and non-standartized
behaviour of "mktemp". Now they use "mkstemp()", a shim sh function to
provide the expected behaviour, and an accompanying "mkdtemp()"
function is also defined.
To further decouple from specific implementations and OS-behaviours and
quirks, a aux/lib.sh file containing both those functions was added.
Its purpose is to also allow code under aux/ to not depend on specific
behaviour.
"mkdtemp()" had to be replicated in aux/ci/ci-build.sh, since it runs
outside the repository.
|
| |
|
| |
|
| |
|
|
|
|
| |
laxer assertions on STDERR
|
| |
|
|
|
|
|
| |
Mostly to avoid the conflict of the ".sh" built-in rule in the
Makefile.
|
|
|
|
| |
git-permalink|sh src/git-permalink.sh|g'
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The issue wan't with getopts but with my usage of it (well, now that's
obvious that the problem wouldn't be in the implementation, but on how
I was using).
The problem was on:
1) my confusion on when and where to "shift";
2) make sure to look for the "--help" and "--version" long flags before
getopts, because it doesn't know about long flags.
Those fixed, the tests are now working again.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The choice of implementation was very basic: Use strings in the script
itself rather than relying on external tools.
Compared to a compiled C program using, say, gettext.3, an sh script
could also depend on it, but at runtime. An equivalent C code would
require the gettext.3 dependency, but at compile time. After
compilation, the code required for doing the translation is already on
the binary, while an sh script would need gettext.1 to run gettext.1
commands while it executes, such as "gettext -s 'MSG_ABC'".
Bash has a very appealing feature: using $"" does a lookup and
translates the string. In other words, $"" runs gettext for you,
without the script requiring gettext.1, just Bash.
As tempting as it was, I chose not to rely on Bash. I preferred the
cost of an ad-hoc solution over requiring Bash over POSIX sh.
The final solution is simple enough for the git-permalink.1 program,
but wouldn't scale for bigger scripts. Strings are placed together for
translation, and no external tool is used for this.
Due to the way that strings are now given to printf.1, ShellCheck
complains a lot about those strings, alonside saying that the
string translation variables are unused. They actually are used, but
hidden behind an eval.
Overall I'm satisfied with the solution, but I probably won't follow
the same path for the manpages, and will choose something like po4a for
it, instead.
|
|
|
|
|
|
|
|
| |
The test that was removed relies on how the repository was clone.
For example, the CI clone the repository as a remote folder, and uses
that for the origin remote. The test fails because of that, and
instead of trying to fix it, I removed it.
|
|
|
|
|
|
|
| |
This reverts commit d3faf9644490a191a16c148a3f4f865b730e5188.
The file was not actually unused, but used in tests to avoid side
effects when running them.
|
| |
|
| |
|
| |
|
|
|