aboutsummaryrefslogtreecommitdiff
path: root/Makefile (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: Generate src/locale/en.sh for translationEuAndreh2021-10-021-1/+5
|
* Makefile: Also install and uninstall en.sh translationsEuAndreh2021-09-291-9/+11
|
* Makefile: Remove load-locale-messages.sh in "uninstall" targetEuAndreh2021-09-201-0/+1
|
* Makefile: Include translation files in repocheck.sh countEuAndreh2021-09-201-1/+1
|
* Adapt installation to new i18n.EuAndreh2021-09-201-3/+17
| | | | | Use the locale files over the locale variables. Adapt the "install" and "uninstall" targets to it, and remove the locale test.
* Rework how translation is doneEuAndreh2021-09-141-9/+21
| | | | | Instead of variables on the code itself, each language gets its own file.
* Makefile: Remove quotes around $(DESTDIR) and $(PREFIX)EuAndreh2021-09-131-6/+6
| | | | | This is because the default paths don't need quotes, and if the user provides a path with spaces, they can provide the quotes.
* Makefile: Put "install"/"uninstall" at the endEuAndreh2021-08-281-4/+4
|
* Makefile: Use empty line break to separate sectionsEuAndreh2021-08-281-2/+2
|
* Makefile: Line break to keep 80 columnsEuAndreh2021-08-281-1/+2
|
* aux/workflow/dist.sh: Run "make clean public dev-check" instead of just two ↵EuAndreh2021-08-281-2/+2
| | | | assert files before tagging and publishing
* Makefile: Use single quotes around macro expansions for paths and namesEuAndreh2021-08-241-13/+13
|
* public/makefile.svg: Start generating it with makefile2graph and graphvizEuAndreh2021-08-231-1/+5
|
* aux/workflow/repocheck.sh: Add, supersedes aux/workflow/installcheck.shEuAndreh2021-08-191-9/+1
| | | | | | | | Implements - #task-079946ed-7e58-3051-78d6-71ba12342aba - #task-4a7e02bd-ab82-c628-fa1c-02749c178936 - #task-db34da8d-bf61-43ae-b8f0-f2299834a937 - #task-a0644009-70d7-56ff-c595-ea39fe24dc2b
* mv aux/workflow/manpages.sh doc/manpages.shEuAndreh2021-08-061-3/+3
|
* Makefile: Keep executable permission of .in suffixed filesEuAndreh2021-07-301-1/+1
|
* Makefile: Make separation between canonical and personal targets clearEuAndreh2021-07-301-13/+18
|
* Makefile: Stick to 80 columnsEuAndreh2021-07-261-8/+11
|
* Makefile: Use $(PREFIX) directly over the $(MANPREFIX) variableEuAndreh2021-07-231-3/+2
|
* Makefile: Stick to 80 columns limitEuAndreh2021-07-161-4/+8
|
* Makefile: Remove redundant markdown dependencies from "public"EuAndreh2021-07-161-1/+1
|
* Release v0.2.3v0.2.3EuAndreh2021-07-161-2/+2
|
* aux/lib.sh: Add mkstemp and mkdtemp, and copy uuid overEuAndreh2021-07-151-1/+1
| | | | | | | | | | | | | | | 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.
* aux/workflow/l10n.sh: Support "-L CONTRIBLANGS" optionEuAndreh2021-07-151-5/+10
| | | | | Adjust Makfile to include it and give it both to aux/workflow/l10n.sh and to aux/workflow/public.sh
* Makefile: Remove TODOs.md as a dependency for "l10n-gen" targetEuAndreh2021-07-151-1/+1
|
* aux/workflow/assert-manpages.sh: Get input languages and en files as argumentsEuAndreh2021-07-151-1/+1
|
* tests/install-uninstall.sh: Remove in favor of aux/workflow/installcheck.shEuAndreh2021-07-151-1/+0
|
* Makefile: Delete .mo and test files in "clean" targetEuAndreh2021-07-141-1/+2
|
* Makefile: Add clear dependencies to "l10n-gen" and "public" targetsEuAndreh2021-07-131-2/+2
|
* aux/workflow/installcheck.sh: Add, call it from MakefileEuAndreh2021-07-071-0/+7
| | | | Implements #task-0b034315-cbd2-6fd6-fd32-9e00a12b7594.
* Put pofiles under po/, use one folder for each translated file.EuAndreh2021-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an improvement over 67f7c956239a7bc811a1d655d389666048e45fc3, and a final step for #task-7c5cd2aa-6d92-0423-bfa7-81f2e8436586. Now instead of trying to convince po4a and mdpo to work together, each tools gets it own folder and a pofile for each language. This means that if I want to translate files FOO.md and a-dir/BAR.txt to pt and fr, the directory structure of po/ will be: po/ FOO.md/ pt.po fr.po a-dir/ BAR.txt/ pt.po fr.po The po/ folder mirrors the directory structure of the input files, also nesting down directories. This way mdpo can do extration and update on its own way, and po4a can do extraction and update on its on way. The downside is that some translations will be duplicated, because they can appear on more than one file.
* Translate CHANGELOG.md adn README.mdEuAndreh2021-07-061-3/+5
| | | | | | | | | Partially implements #task-7c5cd2aa-6d92-0423-bfa7-81f2e8436586. As mentioned in the task, instead of making "README.md" as symlink to "README.en.md", "README.md" is kept as it is, as the translated file doesn't need to live in the repository. The same goes for the "CHANGELOG.md" file.
* Makefile: Don't use $(NAME) for the file nameEuAndreh2021-06-261-1/+1
|
* aux/workflow/public.sh: Use getopts for argumentsEuAndreh2021-06-261-1/+1
|
* aux/workflow/dist.sh: Use getopts for argumentsEuAndreh2021-06-261-1/+1
|
* aux/workflow/assert-manpages.sh: Use getopts for argumentsEuAndreh2021-06-261-1/+1
|
* aux/workflow/assert-readme.sh: Use getopts for argumentsEuAndreh2021-06-261-1/+1
|
* aux/workflow/assert-changelog.sh: Use getopts for arugmentsEuAndreh2021-06-261-1/+1
|
* aux/workflow/assert-spelling.sh: Get files as arguments instead of assuming ↵EuAndreh2021-06-261-1/+1
| | | | they're under public/
* Makefile: use shorter syntax for cp in "install" targetEuAndreh2021-06-261-1/+1
|
* Makefile: Remove trailing \EuAndreh2021-06-261-1/+1
|
* Makefile: Mark src/git-permalink as executable in "all" targetEuAndreh2021-06-261-1/+1
|
* mv src/git-permalink.sh.in src/git-permalin.inEuAndreh2021-06-251-4/+3
| | | | | Mostly to avoid the conflict of the ".sh" built-in rule in the Makefile.
* Release v0.2.2v0.2.2EuAndreh2021-06-251-1/+1
|
* Makefile: Fix installation path of manpagesEuAndreh2021-06-251-2/+2
|
* Makefile: Make "spellcheck" depend on "public"EuAndreh2021-06-251-3/+3
|
* Release v0.2.1v0.2.1EuAndreh2021-06-251-3/+3
|
* aux/workflow/assert-spelling.sh: Add; init dictionaries; fix spellingEuAndreh2021-06-251-5/+10
| | | | | | - aux/workflow/l10n.sh: fix handling of $@; - Makefile: remove circular dependency between dev-check and public by adding the "l10n-gen" target.
* aux/workflow/manpages.sh: Refactor how manpages and translations are madeEuAndreh2021-06-231-15/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I didn't like the previous version of aux/workflow/manpages.sh mainly for 2 reasons: 1. its CLI was terrible, ugly and fragile; 2. it mixed handling manpages and handling *translations*. The first step was to split the translations part to a different file: aux/workflow/l10n.sh. Now it has the base logic for running po4a, and can apply it to manpages. It is useful for updating translated files in other scenarios, such as catgets() message catalogs, markdown files, etc. After I used the venerable getopts to handle the command line arguments, and give aux/workflow/manpages.sh a saner interface. I disliked the fact that aux/workflow/manpages.sh still is being used for the "install" and "uninstall" targets. Before this file, the canonical workflow of "make && make install/uninstall" was 100% embedded within the Makefile itself. But now the Makefile calls to an external script for that. This isn't a real cost, other than how obvious the behaviour is for someone looking at the Makefile for the first time. I still chose to do it anyway, because there was already too many things in the Makefile itself, and it was getting worse with time. I made sure to never cross the line of relying on an external tool for the canonical "make && make install/uninstall", and even for "make check". Those all work without requiring any extra tool outside what POSIX defines, such as "sed", "awk", etc. Despite the cost of adding this detour from the liner Makefile flow, I found it to be worth it to call to the external script, as this script can now also be shared across projects, and the customized Makefile be made simpler. In other to remove the "-- $(do_subst)" horrendous hack, I chose to use an inference rule for ".in" files, and remove the "$(do_subst)" variable altogether. Now all the files that need to go through sed should end in ".in", and the Makefile will take care of producing it. The upside is that this model is much better integrater into make itself. Addresses #task-9ee2bbc8-295f-52b7-4104-483869bad017.
* aux/: Explicitly pass "public/" as a parameter to scriptsEuAndreh2021-06-231-1/+1
|