From 801678520aa07b604565b76349307e6996c77913 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: May 25 2020 20:38:50 +0000 Subject: new script to compare po4a output accross versions po4a evolve over time, the fedora production build uses a local version this script allows to compare the output of two po4a versions on one of our components --- diff --git a/po4a-diff.sh b/po4a-diff.sh new file mode 100755 index 0000000..e731226 --- /dev/null +++ b/po4a-diff.sh @@ -0,0 +1,36 @@ +#!/bin/bash + + +po4a_old="v0.57" +po4a_new="v0.59.1" +l10n_dir="l10n" +component="mindshare" + +rm -rf ./po4a + +echo "Running with po4a $po4a_old" +./build.py \ + --clone_sources false --commit_l10n false --commit_tsources false \ + --component "$component" \ + --clone-po4a --clone-po4a-version "$po4a_old" + +pushd "$l10n_dir/$component" +git add . +git commit -m "hop" +popd + +rm -rf ./po4a + +echo "Running with po4a $po4a_new" + +./build.py \ + --clone_sources false --commit_l10n false --commit_tsources false \ + --component "$component" \ + --clone-po4a --clone-po4a-version "$po4a_new" + +pushd "$l10n_dir/$component" +git add . +git status -v +popd + +echo "go in $l10n_dir/$component and type git status -v to see changes"