diff options
author | EuAndreh <eu@euandre.org> | 2021-09-20 18:54:33 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-09-20 18:54:33 -0300 |
commit | 7d75d83f9386e0edefbc503cc020ffb5e9242494 (patch) | |
tree | 772e0fce563c67ac728581a3543e6b71bc79401b /CHANGELOG.md | |
parent | Makefile: Remove load-locale-messages.sh in "uninstall" target (diff) | |
download | git-permalink-7d75d83f9386e0edefbc503cc020ffb5e9242494.tar.gz git-permalink-7d75d83f9386e0edefbc503cc020ffb5e9242494.tar.xz |
CHANGELOG.md: Document Makefile vars and change in translation
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d48cdb2..12c8fa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,12 +21,63 @@ Changelog for [git-permalink](https://euandreh.xyz/git-permalink/en/). # Unreleased +## Added + +### Translations via external files + +Instead of having translation strings hard-coded into `src/git-permalink.in` +itself, it now uses `src/load-locale-messages.sh.in` to dynamically lookup a +translation file and load its strings. + +## Changed + +### Makefile variables + +Each target directory now has its own configurable Makefile variable: +- `$(PREFIX)` stays the same: `/usr/local`; +- `$(BINDIR)` for `$(PREFIX)/bin`. This was already the value used on the + `install` target, but now one can specifically configure it without having + to change `$(PREFIX)`; +- `$(LIBEXECDIR)` pointing to `$(PREFIX)/libexec` where + `src/load-locale-messages.sh.in` is put; +- `$(SHAREDIR)` as the base directory for `$(MANDIR)` and `$(LOCALEDIR)`; +- `$(MANDIR)` in favour of `$(MANPREFIX)`, which uses `$(LOCALEDIR)/man`. So + now the manpages directory can be affected by either changing `$(PREFIX)` or + `$(SHAREDIR)`; +- `$(LOCALEDIR)` pointing to `$(SHAREDIR)/locale`, where the translated strings + are installed. + +### Calling `make` + +In order to generate the correct files, one should provide the `$(PREFIX)` value +to `make` both when building and when installing. Where previous one would do: + +```shell +$ make +$ make install PREFIX=$HOME/.local +``` + +...now needs to be: + +```shell +$ make PREFIX=$HOME/.local +$ make install PREFIX=$HOME/.local +``` + ## Removed ### Perl Removed dependency on Perl for development. +### Dependency on `aux/` + +The canonical `make clean all check install uninstall` targets don't depend on +`aux/` for working correctly anymore +([#task-079946ed-7e58-3051-78d6-71ba12342aba]). + +[#task-079946ed-7e58-3051-78d6-71ba12342aba]: /git-permalink/TODOs.html#task-079946ed-7e58-3051-78d6-71ba12342aba + # [0.2.3](https://git.euandreh.xyz/git-permalink/commit/?id=v0.2.3) - 2021-07-16 |