Skip to content

Commit

Permalink
gettext-flatpak: Fix only the last pot is updated (#80)
Browse files Browse the repository at this point in the history
Fixes only the last pot file is updated when there are multiple pot files.
  • Loading branch information
ryonakano authored Sep 1, 2024
1 parent e7db16c commit 1a696a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gettext-flatpak/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ flatpak-builder build "$MANIFEST_PATH" --repo=repo --disable-rofiles-fuse --forc
#---------------------------------#

TRANSLATION_FILES=$(git ls-files | grep \.pot$)
GETTEXT_TARGETS=$(echo $TRANSLATION_FILES | sed 's/.*\///' | sed 's/.pot/-pot/')
GETTEXT_TARGETS=$(echo $TRANSLATION_FILES | sed 's/\S*\///g' | sed 's/.pot/-pot/g')

echo "ninja $GETTEXT_TARGETS" | flatpak-builder build "$MANIFEST_PATH" --repo=repo --disable-rofiles-fuse --force-clean --build-shell="$MODULE_NAME" --state-dir="$TMPDIR"
for TRANSLATION_FILE in $TRANSLATION_FILES; do
Expand Down

0 comments on commit 1a696a9

Please sign in to comment.