[Scummvm-git-logs] scummvm master -> b0975d857d8b9a1aa390dcb138d6b98107bd908f

sev- noreply at scummvm.org
Fri Mar 17 15:33:56 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b0975d857d DEVTOOLS: Added more explanations to the pre-release checks


Commit: b0975d857d8b9a1aa390dcb138d6b98107bd908f
    https://github.com/scummvm/scummvm/commit/b0975d857d8b9a1aa390dcb138d6b98107bd908f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-03-17T16:33:33+01:00

Commit Message:
DEVTOOLS: Added more explanations to the pre-release checks

Changed paths:
    devtools/release-checks.sh


diff --git a/devtools/release-checks.sh b/devtools/release-checks.sh
index 46886f6cc25..274ccc8630d 100755
--- a/devtools/release-checks.sh
+++ b/devtools/release-checks.sh
@@ -23,6 +23,7 @@
 TMP=release-check.tmp
 
 GREEN='\033[0;32m'
+YELLOW='\033[0;33m'
 RED='\033[0;31m'
 NC='\033[0m'
 
@@ -264,6 +265,9 @@ headerlist=`grep \.h$ <<< "$list" | grep -v detection_ | grep -v keymapper_`
 if [ ! -z "$headerlist" ]; then
   num_lines=`wc -l <<< "$headerlist"`
   echo -e "$num_lines headers detected"
+  echo -e "${YELLOW}It is not advised to include common/translation.h in header files."
+  echo -e "The exception is detection_*.h and keymapper_*.h files."
+  echo -e "Putting this include in header could easily lead to missing POTFILES addition.${NC}"
 
   echo "$headerlist"
 
@@ -276,13 +280,13 @@ fi
 echo_n "Checking missing/extra POTFILES..."
 
 # Now get list of includes
-git grep -l "common/translation\.h" | grep -v devtools/create_engine | sort > $TMP
+git grep -l "common/translation\.h" | grep -v devtools/create_engine | grep -v devtools/release-checks.sh | sort > $TMP
 
 res=`diff -  $TMP <<< "$list"`
 
 if [ ! -z "$res" ]; then
     echo -e "${RED}Failed.${NC}"
-    echo "The diff is below. < marks extra files in POTFILES, > marks missing file in POTFILES"
+    echo -e "${YELLOW}The diff is below. < marks extra files in POTFILES, > marks missing file in POTFILES${NC}"
 
     echo "$res"
 




More information about the Scummvm-git-logs mailing list