Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/vi/catalog/Makefile
Show All 13 Lines | |||||
VICATPACKAGE= ${PACKAGE} | VICATPACKAGE= ${PACKAGE} | ||||
SCAN= ${V}/cl/*.c ${V}/common/*.c ${V}/ex/*.c ${V}/vi/*.c | SCAN= ${V}/cl/*.c ${V}/common/*.c ${V}/ex/*.c ${V}/vi/*.c | ||||
.PATH: ${V}/catalog | .PATH: ${V}/catalog | ||||
all: dump | all: dump | ||||
build-tools: dump | |||||
WARNS= 3 | WARNS= 3 | ||||
# Helper since iconv is non trivial to make a build tool | # Helper since iconv is non trivial to make a build tool | ||||
utf8convert: | utf8convert: | ||||
.for c in dutch french german spanish swedish | .for c in dutch french german spanish swedish | ||||
iconv -f ISO8859-1 -t UTF-8 $V/catalog/$c.base > $c.UTF-8.base | iconv -f ISO8859-1 -t UTF-8 $V/catalog/$c.base > $c.UTF-8.base | ||||
.endfor | .endfor | ||||
iconv -f ISO8859-2 -t UTF-8 $V/catalog/polish.base > polish.UTF-8.base | iconv -f ISO8859-2 -t UTF-8 $V/catalog/polish.base > polish.UTF-8.base | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | ${c}.check: ${c}.base | ||||
echo =========================; \ | echo =========================; \ | ||||
echo "Duplicate messages, both id and message (this is okay):"; \ | echo "Duplicate messages, both id and message (this is okay):"; \ | ||||
sed '/^$$/d' < $$f.base | LC_ALL=C sort | uniq -c | \ | sed '/^$$/d' < $$f.base | LC_ALL=C sort | uniq -c | \ | ||||
awk '$$1 != 1 { print $$0 }' | sort -n; \ | awk '$$1 != 1 { print $$0 }' | sort -n; \ | ||||
echo =========================) > $c | echo =========================) > $c | ||||
.endfor | .endfor | ||||
english.base: dump ${SCAN} #Makefile | english.base: dump ${SCAN} #Makefile | ||||
${BTOOLSPATH:U.}/dump ${SCAN} |\ | ./dump ${SCAN} |\ | ||||
sed -e '/|/!d' \ | sed -e '/|/!d' \ | ||||
-e 's/|/ "/' \ | -e 's/|/ "/' \ | ||||
-e 's/^"//' |\ | -e 's/^"//' |\ | ||||
LC_ALL=C sort -nu > $@ | LC_ALL=C sort -nu > $@ | ||||
DEPENDOBJS+= dump | DEPENDOBJS+= dump | ||||
dump: ${BUILD_TOOLS_META} | dump: dump.c | ||||
${BUILD_TOOLS_CC} -o ${.TARGET} ${.IMPSRC} | |||||
CLEANFILES+= dump ${CAT} english.base *.check __ck1 __ck2 | CLEANFILES+= dump ${CAT} english.base *.check __ck1 __ck2 | ||||
CATALOGS= ${CAT} | CATALOGS= ${CAT} | ||||
NLLINKS= nl_NL | NLLINKS= nl_NL | ||||
ENLINKS= en_AU en_CA en_GB en_NZ en_US | ENLINKS= en_AU en_CA en_GB en_NZ en_US | ||||
FRLINKS= fr_BE fr_CA fr_CH fr_FR | FRLINKS= fr_BE fr_CA fr_CH fr_FR | ||||
DELINKS= de_AT de_CH de_DE | DELINKS= de_AT de_CH de_DE | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |