[Scummvm-git-logs] scummvm master -> c40803f5453de3be431272c30a8b8f1dde2c72a2
lephilousophe
noreply at scummvm.org
Thu May 1 09:13:13 UTC 2025
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
332e296f9b DEVTOOLS: Simplify commit date parsing
c40803f545 ANDROID: Add release tools for translations
Commit: 332e296f9ba89fa5742468edea8c0d0ea6a7753a
https://github.com/scummvm/scummvm/commit/332e296f9ba89fa5742468edea8c0d0ea6a7753a
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-05-01T11:10:53+02:00
Commit Message:
DEVTOOLS: Simplify commit date parsing
Changed paths:
devtools/release-checks.sh
diff --git a/devtools/release-checks.sh b/devtools/release-checks.sh
index f728a9a00c3..cd005708a25 100755
--- a/devtools/release-checks.sh
+++ b/devtools/release-checks.sh
@@ -79,7 +79,7 @@ cd "$oldpwd"
echo_n "Checking default icons pack..."
-fileDate=`git log -1 gui/themes/gui-icons.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" gui/themes/gui-icons.dat`
cd ../scummvm-icons
@@ -117,7 +117,7 @@ cd "$oldpwd"
echo_n "Checking default shaders pack..."
-fileDate=`git log -1 gui/themes/shaders.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" gui/themes/shaders.dat`
cd ../scummvm-shaders
@@ -193,7 +193,7 @@ fi
echo_n "Checking translations..."
-fileDate=`git log -1 gui/themes/translations.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" gui/themes/translations.dat`
num_lines=`git -P log --oneline "--since=$fileDate" po/ | wc -l`
@@ -504,7 +504,7 @@ IFS="$OLDIFS"
echo_n "Checking bagel.dat..."
-fileDate=`git log -1 dists/engine-data/bagel.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" dists/engine-data/bagel.dat`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_bagel/files | wc -l`
@@ -523,7 +523,7 @@ fi
echo_n "Checking mm.dat..."
-fileDate=`git log -1 dists/engine-data/mm.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" dists/engine-data/mm.dat`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_mm/files | wc -l`
@@ -542,7 +542,7 @@ fi
echo_n "Checking nancy.dat..."
-fileDate=`git log -1 dists/engine-data/nancy.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" dists/engine-data/nancy.dat`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_nancy/files | wc -l`
@@ -561,7 +561,7 @@ fi
echo_n "Checking ultima.dat..."
-fileDate=`git log -1 dists/engine-data/ultima.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" dists/engine-data/ultima.dat`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_ultima/files | wc -l`
@@ -581,7 +581,7 @@ fi
echo_n "Checking ultima8.dat..."
-fileDate=`git log -1 dists/engine-data/ultima8.dat | grep Date | sed 's/Date: //'`
+fileDate=`git log -1 --pretty=format:"%aI" dists/engine-data/ultima8.dat`
num_lines=`git -P log --oneline "--since=$fileDate" devtools/create_ultima8 | wc -l`
Commit: c40803f5453de3be431272c30a8b8f1dde2c72a2
https://github.com/scummvm/scummvm/commit/c40803f5453de3be431272c30a8b8f1dde2c72a2
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-05-01T11:10:58+02:00
Commit Message:
ANDROID: Add release tools for translations
Changed paths:
devtools/generate-android-i18n-strings.py
devtools/release-checks.sh
po/module.mk
diff --git a/devtools/generate-android-i18n-strings.py b/devtools/generate-android-i18n-strings.py
old mode 100644
new mode 100755
diff --git a/devtools/release-checks.sh b/devtools/release-checks.sh
index cd005708a25..e15f5915848 100755
--- a/devtools/release-checks.sh
+++ b/devtools/release-checks.sh
@@ -205,6 +205,20 @@ else
echoOk
fi
+echo_n "Checking Android translations..."
+
+fileDate=`git log -1 --pretty=format:"%aI" dists/android/res/values-*/strings.xml`
+
+num_lines=`git -P log --oneline "--since=$fileDate" po/ | wc -l`
+
+if [ "$num_lines" -ne "0" ]; then
+ echo -e "$num_lines unprocessed commits. ${RED}Run 'make android-translations'${NC}"
+
+ failPlus
+else
+ echoOk
+fi
+
###########
# Release Notes
diff --git a/po/module.mk b/po/module.mk
index 42fb60a789f..dfce15f0f97 100644
--- a/po/module.mk
+++ b/po/module.mk
@@ -45,4 +45,7 @@ update-translations: updatepot $(POFILES)
@$(foreach file, $(POFILES), echo -n $(notdir $(basename $(file)))": ";msgfmt --statistic $(file);)
@rm -f messages.mo
-.PHONY: updatepot translations-dat update-translations
+android-translations: devtools/generate-android-i18n-strings.py
+ devtools/generate-android-i18n-strings.py
+
+.PHONY: updatepot translations-dat update-translations android-translations
More information about the Scummvm-git-logs
mailing list