aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-07-06 16:01:36 -0300
committerEuAndreh <eu@euandre.org>2023-07-06 16:01:54 -0300
commit1ed0bfbe421affea771948b4226911580d645934 (patch)
treeca167cc9f68eef697063aa93b9760408b7e6748c
parentTODOs.md: Add note on makemake(1) (diff)
downloadeuandre.org-1ed0bfbe421affea771948b4226911580d645934.tar.gz
euandre.org-1ed0bfbe421affea771948b4226911580d645934.tar.xz
v2: mv aux/po4a-cfg.sh src/bin/dyn-po4a
-rw-r--r--v2/Makefile2
-rwxr-xr-xv2/src/bin/dyn-po4a (renamed from v2/aux/po4a-cfg.sh)10
2 files changed, 6 insertions, 6 deletions
diff --git a/v2/Makefile b/v2/Makefile
index 1fa6050..f98c9ef 100644
--- a/v2/Makefile
+++ b/v2/Makefile
@@ -12,7 +12,7 @@ generated.mk: ALWAYS
makemake > generated.mk
po/po4a.cfg: ALWAYS
- sh aux/po4a-cfg.sh < po/i18n.mappings | ifnew $@
+ dyn-po4a < po/i18n.mappings | ifnew $@
po4a $@
ALWAYS:
diff --git a/v2/aux/po4a-cfg.sh b/v2/src/bin/dyn-po4a
index 384b2fb..9dde6d1 100755
--- a/v2/aux/po4a-cfg.sh
+++ b/v2/src/bin/dyn-po4a
@@ -4,8 +4,8 @@ set -eu
usage() {
cat <<-'EOF'
Usage:
- aux/po4a-cfg.sh > po/po4a.cfg
- aux/po4a-cfg.sh -h
+ dyn-po4a > po/po4a.cfg
+ dyn-po4a -h
EOF
}
@@ -29,14 +29,14 @@ help() {
$ mkdir po
$ touch po/pt.po
$ touch po/"$(basename "$PWD")".pot
- $ aux/po4a-cfg.sh > po/po4a.cfg
+ $ dyn-po4a > po/po4a.cfg
$ po4a po/po4a.cfg
Conditionally update the configuration in a Makefile:
po/po4a.cfg: ALWAYS
- @sh aux/po4a-cfg.sh | ifnew $@
+ dyn-po4a | ifnew $@
po4a $@
EOF
}
@@ -72,7 +72,7 @@ while getopts 'h' flag; do
done
shift $((OPTIND - 1))
-. aux/lib.sh
+. src/lib.sh
guess_type() {