Project

General

Profile

Feature #703 ยป 0007-Generate-langstat-files-to-the-build-directory.patch

Marko Lindqvist, 10/31/2024 07:24 AM

View differences:

bootstrap/Makefile.am
generate_langstat.sh \
generate_meson_run.sh \
generate_metainfo.sh \
langstat_core.txt \
langstat_nations.txt \
langstat_ruledit.txt \
org.freeciv.gtk322.desktop \
org.freeciv.gtk4.desktop \
org.freeciv.gtk4x.desktop \
bootstrap/generate_langstat.sh
echo "$CODE $PRCT $NLANG"
done ) > "$3/langstat_${1}.txt.tmp"
if ! test -f "$2/bootstrap/langstat_${1}.txt" ||
! cmp "$2/bootstrap/langstat_${1}.txt" "$3/langstat_${1}.txt.tmp" ; then
mv "$3/langstat_${1}.txt.tmp" "$2/bootstrap/langstat_${1}.txt"
if ! test -f "$3/langstat_${1}.txt" ||
! cmp "$3/langstat_${1}.txt" "$3/langstat_${1}.txt.tmp" ; then
mv "$3/langstat_${1}.txt.tmp" "$3/langstat_${1}.txt"
else
rm -f "$3/langstat_${1}.txt.tmp"
fi
platforms/windows/installer_cross/create-freeciv-gtk-qt-nsi.sh
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
while read -r code prct name
do
......
\${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
while read -r code prct name
do
......
echo " StrCpy \$DefaultLanguageCode \"en_US\""
echo " \${EndIf}"
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
while read -r code prct name
do
echo " \${If} \$LangName == \"$name ($code) $prct\""
platforms/windows/installer_cross/create-freeciv-ruledit-nsi.sh
EOF
cat ../../../bootstrap/langstat_ruledit.txt |
cat $1/doc/freeciv/installer/langstat_ruledit.txt |
sort -k 1 |
while read -r code prct name
do
......
\${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
EOF
cat ../../../bootstrap/langstat_ruledit.txt |
cat $1/doc/freeciv/installer/langstat_ruledit.txt |
sort -k 1 |
while read -r code prct name
do
......
echo " StrCpy \$DefaultLanguageCode \"en_US\""
echo " \${EndIf}"
cat ../../../bootstrap/langstat_ruledit.txt |
cat $1/doc/freeciv/installer/langstat_ruledit.txt |
while read -r code prct name
do
echo " \${If} \$LangName == \"$name ($code) $prct\""
platforms/windows/installer_cross/create-freeciv-sdl2-nsi.sh
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
while read -r code prct name
do
......
\${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
while read -r code prct name
do
......
echo " StrCpy \$DefaultLanguageCode \"en_US\""
echo " \${EndIf}"
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
while read -r code prct name
do
echo " \${If} \$LangName == \"$name ($code) $prct\""
platforms/windows/installer_cross/meson-installer_build.sh
! mkdir -p "${INSTDIR}/doc/freeciv/installer" ||
! cat licenses/header.txt "${SRC_ROOT}/COPYING" \
> "${INSTDIR}/doc/freeciv/installer/COPYING.installer" ||
! cp "${BUILD_ROOT}/meson/build/${SETUP}-${GUI}/langstat_"*.txt \
"${INSTDIR}/doc/freeciv/installer/" ||
! rm -Rf "${INSTDIR}/lib" ||
! cp Freeciv.url "${INSTDIR}/"
then
platforms/windows/installer_msys2/Makefile.meson
mv $(INST_DIR)/$(WINARCH)-client-$(GUI)/share/doc $(INST_DIR)/$(WINARCH)-client-$(GUI)/
mkdir -p $(INST_DIR)/$(WINARCH)-client-$(GUI)/doc/freeciv/installer
cat licenses/header.txt $(SRC_ROOT)/COPYING > $(INST_DIR)/$(WINARCH)-client-$(GUI)/doc/freeciv/installer/COPYING.installer
cp $(BUILD_DIR)/$(WINARCH)-client-$(GUI)/langstat_*.txt $(INST_DIR)/$(WINARCH)-client-$(GUI)/doc/freeciv/installer/
cp freeciv-server.cmd freeciv-mp-$(FCMP).cmd freeciv-$(CLIENT).cmd Freeciv.url $(INST_DIR)/$(WINARCH)-client-$(GUI)/
install-ruledit-common: clean-ruledit-install-arch
......
mv $(INST_DIR)/$(WINARCH)-ruledit-$(GUI)/share/doc $(INST_DIR)/$(WINARCH)-ruledit-$(GUI)/
mkdir -p $(INST_DIR)/$(WINARCH)-ruledit-$(GUI)/doc/freeciv/installer
cat licenses/header.txt $(SRC_ROOT)/COPYING > $(INST_DIR)/$(WINARCH)-ruledit-$(GUI)/doc/freeciv/installer/COPYING.installer
cp $(BUILD_DIR)/$(WINARCH)-ruledit-$(GUI)/langstat_*.txt $(INST_DIR)/$(WINARCH)-ruledit-$(GUI)/doc/freeciv/installer/
cp freeciv-ruledit.cmd Freeciv.url $(INST_DIR)/$(WINARCH)-ruledit-$(GUI)/
SOUND_DLLS := \
platforms/windows/installer_msys2/create-freeciv-gtk-qt-nsi.sh
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
......
\${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
......
echo " StrCpy \$DefaultLanguageCode \"en_US\""
echo " \${EndIf}"
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
do
platforms/windows/installer_msys2/create-freeciv-ruledit-nsi.sh
EOF
cat ../../../bootstrap/langstat_ruledit.txt |
cat $1/doc/freeciv/installer/langstat_ruledit.txt |
sort -k 1 |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
......
\${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
EOF
cat ../../../bootstrap/langstat_ruledit.txt |
cat $1/doc/freeciv/installer/langstat_ruledit.txt |
sort -k 1 |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
......
echo " StrCpy \$DefaultLanguageCode \"en_US\""
echo " \${EndIf}"
cat ../../../bootstrap/langstat_ruledit.txt |
cat $1/doc/freeciv/installer/langstat_ruledit.txt |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
do
platforms/windows/installer_msys2/create-freeciv-sdl2-nsi.sh
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
......
\${NSD_CB_AddString} \$DefaultLanguageDropList "US English (en_US)"
EOF
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
sort -k 1 |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
......
echo " StrCpy \$DefaultLanguageCode \"en_US\""
echo " \${EndIf}"
cat ../../../bootstrap/langstat_core.txt |
cat $1/doc/freeciv/installer/langstat_core.txt |
iconv -f UTF-8 -t ISO-8859-1 |
while read -r code prct name
do
    (1-1/1)