aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-22TODOs.md: spellcheckingEuAndreh1-4/+4
2021-06-22TODOs.md: Mark #task-9ee2bbc8-295f-52b7-4104-483869bad017 as DONEEuAndreh1-1/+5
2021-06-22TODOs.md: Add #task-cded56f2-c939-3c69-c818-0fb62d62cfd8EuAndreh1-0/+3
2021-06-22src/git-permalink.sh: Use getopts, handle "--" somewhatEuAndreh1-13/+32
See #task-bebbe847-f552-be4b-b886-70a621162b69.
2021-06-22TODOs.md: Add #task-bebbe847-f552-be4b-b886-70a621162b69EuAndreh1-0/+26
2021-06-22aux/workflow/TODOs.sh: Use <pre> over <span> for visible idsEuAndreh1-1/+1
2021-06-22README.md: Better wording on the installation explanationEuAndreh1-6/+8
2021-06-22TODOs.md: Add #task-ada9b39a-cc42-97b2-bd02-ad9c0adc475cEuAndreh1-0/+3
2021-06-22TODOs.md: Add #task-ab5a4835-3d79-03e4-8342-7f5add40b159EuAndreh1-0/+3
2021-06-21src/git-permalink.sh: Suppress warnings when running "locale"EuAndreh1-1/+1
2021-06-21aux/guix/manifest.scm: Add glibc for the "locale" commandEuAndreh1-1/+2
2021-06-21TODOs.md: Add #decision-1f7db3d5-002e-515e-f209-0d0917228359EuAndreh1-0/+19
2021-06-21src/git-permalink.sh: Use LC_MESSAGES to decide on the languageEuAndreh1-4/+13
First, instead of looking at "${LANG:-}" for choosing the language, we now use LC_MESSAGES from the locale(1) command. LC_MESSAGES is the appropriate place to look at, and it inherits the value of $LANG by default, but can be overriden so that the text messages from a program spits out strings from a language, but use everything else from $LANG (such as LC_NUMERIC), like in: LANG=abc LC_MESSAGES=zzz I took this opportunity to look only at the language and country part of the locale, and not at the codeset or modifier (as in ll_CC.CODESET@modifier), so that as long as the language+country is the same, it uses the according message. This addresses the "Maybe it could be less restrictive of country or encoding" comment on
2021-06-21TODOs.md: Mark #task-717fa8b7-1c92-5766-8872-280ae061bf4b as CANCELLEDEuAndreh1-1/+25
2021-06-21TODOs.md: Mark https://nullprogram.com/blog/2020/08/01/ as CANCELLEDEuAndreh1-1/+8
2021-06-21TODOs.md: Add #task-717fa8b7-1c92-5766-8872-280ae061bf4bEuAndreh1-0/+3
2021-06-21TODOs.md: Mark #task-9be7e4f5-df3c-ed5f-1ca1-2ce9fc61d944 as DONEEuAndreh1-1/+5
2021-06-21doc/git-permalink.*.1: Mark SUPPORTED REMOTES and OVERRIDES as .SSEuAndreh7-520/+542
Make SUPPORTED REMOTES and OVERRIDES subsections (.SS) of a new parent section: CONFIGURATIONS. Also put SUPPORTED REMOTES before OVERRIDES on the order.
2021-06-21TODOs.md: Mark #task-1d80cea9-b246-0168-7844-34fe629b255f as DONEEuAndreh1-1/+7
2021-06-21doc/git-permalink.*.1: Mark OPTIONS as to be replacedEuAndreh7-16/+16
Also improve french translation: s/FICHIERS/FICHIER/.
2021-06-21TODOs.md: Mark #task-de34e119-049f-67a0-da8b-e0103ed24a2b as DONEEuAndreh1-1/+5
2021-06-21doc/git-permalink.*.1: Add `EXIT STATUS` section; mention `STDOUT` in `-p` ↵EuAndreh7-56/+256
option
2021-06-21TODOs.md: Add #task-9be7e4f5-df3c-ed5f-1ca1-2ce9fc61d944EuAndreh1-0/+3
2021-06-21TODOs.md: Add #task-1d80cea9-b246-0168-7844-34fe629b255fEuAndreh1-0/+8
2021-06-21TODOs.md: Add #task-de34e119-049f-67a0-da8b-e0103ed24a2bEuAndreh1-0/+3
2021-06-21TODOs.md: Add #task-4ae91595-6e6d-be17-d882-754a478da878EuAndreh1-0/+3
2021-06-21TODOs.md: Add #task-fbc4e2cc-b9e0-53e2-6b0a-8ec118962046EuAndreh1-0/+3
2021-06-21TODOs.md: Add #task-9ee2bbc8-295f-52b7-4104-483869bad017EuAndreh1-0/+7
2021-06-20doc/pt.po: Fix typo s/OPÇÔES/OPÇÕES/EuAndreh2-3/+3
2021-06-19README.md: Mention po4a and gettext on the list of development toolsEuAndreh1-0/+3
2021-06-19TODOs.md: Mark #task-eb65cbf1-bff9-be13-f185-3ea53333aa6f as DONEEuAndreh1-1/+5
2021-06-19aux/ci/report.sh: Fetch only CI-related notesEuAndreh1-1/+4
2021-06-19TODOs.md: Add #task-eb65cbf1-bff9-be13-f185-3ea53333aa6fEuAndreh1-0/+3
2021-06-19Release v0.2.0v0.2.0EuAndreh3-2/+15
2021-06-19Makefile: Fix arguments to aux/workflow/dist.shEuAndreh1-1/+1
2021-06-19doc/: Add new supported forges to the manpagesEuAndreh7-75/+196
2021-06-19TODOs.md: Mark #task-cebc5298-17ad-5c60-dfa5-a25b66433a3a as DONEEuAndreh1-12/+13
2021-06-19Add support for the Linux kernel CGit instanceEuAndreh1-0/+7
2021-06-19Add support for bitbucket.orgEuAndreh1-0/+8
2021-06-19Add support for pagure.ioEuAndreh1-0/+7
I only added support for HTTPS remotes, because I'm not willing to go out of my way for creating a Fedora account just to see what an SSH URL looks like. I guess just the prefix would change, but repositories not named "A/B.git" but just "B.git" would need more (trivial) treatment, which I'm not willing to do. It shall stay this way until a contribution comes to improve it, or Pagure stops making it hard for me to implement this.
2021-06-19Add support for codeberg.orgEuAndreh1-0/+8
2021-06-19Add support for notabug.orgEuAndreh1-21/+31
2021-06-19aux/workflow/manpages.sh: Suppress ShellCheck warningsEuAndreh1-0/+2
2021-06-19TODOs.md: Mark #task-9e842529-b782-84a2-1d0a-801a8766cb7e as DONEEuAndreh1-3/+7
2021-06-19Add aux/workflow/manpages.sh to install, uninstall and generate HTML from ↵EuAndreh4-31/+62
translated manpages
2021-06-19aux/workflow/assert-manpages.sh: Mark as executableEuAndreh1-0/+0
2021-06-19TODOs.md: Update #task-9e842529-b782-84a2-1d0a-801a8766cb7e DOING statusEuAndreh1-2/+5
2021-06-19Leverage po4a to translate manpagesEuAndreh13-17/+1943
2021-06-17TODOs.md: Mark #task-9e842529-b782-84a2-1d0a-801a8766cb7e as DOINGEuAndreh1-1/+5
2021-06-17src/git-permalink.sh: Translate program output to pt, fr and eoEuAndreh2-17/+86
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.