summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRestorerZ <restorer@mail2k.ru>2024-08-11 20:03:35 +0200
committerChristian Brabandt <cb@256bit.org>2024-08-11 20:03:35 +0200
commite20aeb875c5da145922696823d893de5f61807ae (patch)
tree7478f89f51cab513d168cb3802fd8d9a3f00ea90
parent659713da338fc758317e4e600170b02887ae3727 (diff)
patch 9.1.0670: po file encoding fails on *BSD during makev9.1.0670
Problem: po file encoding fails on *BSD during make Solution: instead of using `$<` make use of variable `$?` which should be equivalent when the rule is dependent on only a single file (RestorerZ). closes: #15471 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--src/po/Makefile50
-rw-r--r--src/version.c2
2 files changed, 27 insertions, 25 deletions
diff --git a/src/po/Makefile b/src/po/Makefile
index df9a0405c6..95259a64f5 100644
--- a/src/po/Makefile
+++ b/src/po/Makefile
@@ -107,55 +107,55 @@ nb.po: no.po
ja.sjis.po: ja.po
@$(MAKE) sjiscorr
rm -f $@
- iconv -f UTF-8 -t CP932 $< | ./sjiscorr > $@
+ iconv -f UTF-8 -t CP932 $? | ./sjiscorr > $@
sjiscorr: sjiscorr.c
$(CC) -o sjiscorr sjiscorr.c
ja.euc-jp.po: ja.po
- iconv -f UTF-8 -t EUC-JP $< | \
+ iconv -f UTF-8 -t EUC-JP $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=EUC-JP/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert cs.po to create cs.cp1250.po.
cs.cp1250.po: cs.po
rm -f $@
- iconv -f ISO-8859-2 -t CP1250 $< | \
+ iconv -f ISO-8859-2 -t CP1250 $? | \
$(SED) -e 's/charset=[iI][sS][oO]-8859-2/charset=CP1250/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert pl.po to create pl.cp1250.po.
pl.cp1250.po: pl.po
rm -f $@
- iconv -f ISO-8859-2 -t CP1250 $< | \
+ iconv -f ISO-8859-2 -t CP1250 $? | \
$(SED) -e 's/charset=[iI][sS][oO]-8859-2/charset=CP1250/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert pl.po to create pl.UTF-8.po.
pl.UTF-8.po: pl.po
rm -f $@
- iconv -f ISO-8859-2 -t UTF-8 $< | \
+ iconv -f ISO-8859-2 -t UTF-8 $? | \
$(SED) -e 's/charset=[iI][sS][oO]-8859-2/charset=UTF-8/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert sk.po to create sk.cp1250.po.
sk.cp1250.po: sk.po
rm -f $@
- iconv -f ISO-8859-2 -t CP1250 $< | \
+ iconv -f ISO-8859-2 -t CP1250 $? | \
$(SED) -e 's/charset=[iI][sS][oO]-8859-2/charset=CP1250/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert zh_CN.UTF-8.po to create zh_CN.po.
zh_CN.po: zh_CN.UTF-8.po
rm -f $@
- iconv -f UTF-8 -t GB2312 $< | \
+ iconv -f UTF-8 -t GB2312 $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=GB2312/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
@@ -163,17 +163,17 @@ zh_CN.po: zh_CN.UTF-8.po
# This used to convert from zh_CN.po, but that results in a conversion error.
zh_CN.cp936.po: zh_CN.UTF-8.po
rm -f $@
- iconv -f UTF-8 -t CP936 $< | \
+ iconv -f UTF-8 -t CP936 $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=GBK/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert zh_TW.UTF-8.po to create zh_TW.po.
zh_TW.po: zh_TW.UTF-8.po
rm -f $@
- iconv -f UTF-8 -t BIG5 $< | \
+ iconv -f UTF-8 -t BIG5 $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=BIG5/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
@@ -197,7 +197,7 @@ zh_TW.po: zh_TW.UTF-8.po
#zh_TW.po: zh_TW.UTF-8.po
# @$(MAKE) big5corr
# rm -f $@
-# iconv -f UTF-8 -t BIG5 $< | ./big5corr > $@
+# iconv -f UTF-8 -t BIG5 $? | ./big5corr > $@
# 06.11.23, added by Restorer
@@ -209,25 +209,25 @@ zh_TW.po: zh_TW.UTF-8.po
# Convert ko.UTF-8.po to create ko.po.
ko.po: ko.UTF-8.po
rm -f $@
- iconv -f UTF-8 -t EUC-KR $< | \
+ iconv -f UTF-8 -t EUC-KR $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=EUC-KR/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert ru.po to create ru.cp1251.po.
ru.cp1251.po: ru.po
rm -f $@
- iconv -f UTF-8 -t CP1251 $< | \
+ iconv -f UTF-8 -t CP1251 $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=CP1251/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
# Convert uk.po to create uk.cp1251.po.
uk.cp1251.po: uk.po
rm -f $@
- iconv -f UTF-8 -t CP1251 $< | \
+ iconv -f UTF-8 -t CP1251 $? | \
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=CP1251/' \
- -e 's/# Original translations/# Generated from $<, DO NOT EDIT/' \
+ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \
> $@
prefixcheck:
@@ -329,6 +329,6 @@ $(PLUGPACKAGE).pot: $(PO_PLUG_INPUTLIST)
# Converting the PO file of the plug-in package to the binary format of the MO
MO_PLUGPACKAGE_PATH = $(PWD)
$(PLUGPACKAGE).mo: $(PO_PLUGPACKAGE)
- $(MSGFMTCMD) -o $(MO_PLUGPACKAGE_PATH)/$@ $<
+ $(MSGFMTCMD) -o $(MO_PLUGPACKAGE_PATH)/$@ $?
# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make:
diff --git a/src/version.c b/src/version.c
index c58e82eae2..03658333ac 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 670,
+/**/
669,
/**/
668,