From: Karel Zak Date: Thu, 6 Mar 2025 09:39:15 +0000 (+0100) Subject: tools/git-tp-sync: update also po-man X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ebf2148a8866715012f27a2e7c9eef5d1472be1;p=thirdparty%2Futil-linux.git tools/git-tp-sync: update also po-man Signed-off-by: Karel Zak (cherry picked from commit a7541e95b1396d4a80ca18fa4e3d9dcc56bc1561) --- diff --git a/tools/git-tp-sync b/tools/git-tp-sync index a712d3525..57ad3095e 100755 --- a/tools/git-tp-sync +++ b/tools/git-tp-sync @@ -173,13 +173,21 @@ function update_project { function regenerate_po_files { local PODIR="$1" - if [ ! -f "${PODIR}/Makefile" ]; then + if [ "$PODIR" = "po" ]; then + if [ "${PODIR}/Makefile" ]; then + return; + else + echo "== Updating $PODIR (be patient) ==" + make -C $PODIR update-po &> /dev/null + fi + elif [ "$PODIR" = "po-man" ]; then + echo "== Updating $PODIR (be patient) ==" + make gen-poman-dist + else + echo "Unsupported $PODIR directory (skip update)" return; fi - echo "== Updating $PODIR (be patient) ==" - make -C $PODIR update-po &> /dev/null - # ignore files where is only modified one line ("POT-Creation-Date") PO_IGNORE=$(git diff --numstat $PODIR/*.po | gawk -v ORS=" " '/1[[:blank:]]1[[:blank:]]/ { print $3 }') if [ -n "$PO_IGNORE" ]; then @@ -194,7 +202,7 @@ function regenerate_po_files { fi fi - git checkout -f "$PODIR"/ &> /dev/null + git checkout -f "$PODIR" &> /dev/null } for d in "${DIRS[@]}"; do