| |
@@ -1,13 +1,26 @@
|
| |
#!/bin/bash
|
| |
+ # this files allow to validate a new version of PO4A to use in our build process
|
| |
|
| |
+ # process to validate a new version of po4a:
|
| |
+ # confirm the following list of combination brings no bug:
|
| |
+ # 1. the homepage: docs/ROOT/master
|
| |
+ # https://docs.fedoraproject.org/en-US/docs/
|
| |
+ # 2. the fedora project presentation page: project/ROOT/master
|
| |
+ # https://docs.fedoraproject.org/en-US/project/
|
| |
+ # 3. the alias usage: diversity-inclusion/roles/master
|
| |
+ # https://docs.fedoraproject.org/en-US/diversity-inclusion/roles/council-advisor/
|
| |
+ # 4. big pages manuals: fedora/install-guide/f33
|
| |
+ # https://docs.fedoraproject.org/en-US/fedora/f33/
|
| |
+ # 5. outdated pages: quick-docs/ROOT/master
|
| |
+ # https://docs.fedoraproject.org/en-US/quick-docs/
|
| |
|
| |
- po4a_old="v0.57"
|
| |
- po4a_new="v0.60"
|
| |
+ po4a_old="v0.60"
|
| |
+ po4a_new="v0.62"
|
| |
l10n_dir="l10n"
|
| |
tsrc_dir="translated-sources"
|
| |
|
| |
- component="docs"
|
| |
- module="ROOT"
|
| |
+ component="diversity-inclusion"
|
| |
+ module="roles"
|
| |
version="master"
|
| |
|
| |
if [ "$module" == "ROOT" ] ; then
|
| |
@@ -16,24 +29,24 @@
|
| |
target_repo_name="$component-$module"
|
| |
fi
|
| |
|
| |
- rm -rf "$l10n_dir"
|
| |
+ rm -rf "./$l10n_dir"
|
| |
rm -rf ./po4a
|
| |
- rm -rf "$tsrc_dir"
|
| |
+ rm -rf "./$tsrc_dir"
|
| |
|
| |
echo "Running with po4a $po4a_old"
|
| |
./build.py \
|
| |
- --clone_sources false --commit_l10n false --commit_tsources false \
|
| |
+ --clone_sources --commit_l10n --commit_tsources --nopush \
|
| |
--component "$component" --module "$module" --version "$version" \
|
| |
--clone-po4a --clone-po4a-version "$po4a_old"
|
| |
|
| |
pushd "$l10n_dir/$target_repo_name"
|
| |
git add .
|
| |
- git commit -m "hop"
|
| |
+ git commit -m "commit with po4a_old=$po4a_old"
|
| |
popd
|
| |
|
| |
pushd "$tsrc_dir"
|
| |
git add .
|
| |
- git commit -m "hop"
|
| |
+ git commit -m "commit with po4a_old=$po4a_old"
|
| |
popd
|
| |
|
| |
rm -rf ./po4a
|
| |
@@ -41,7 +54,7 @@
|
| |
echo "Running with po4a $po4a_new"
|
| |
|
| |
./build.py \
|
| |
- --clone_sources false --commit_l10n false --commit_tsources false \
|
| |
+ --clone_sources --commit_l10n --commit_tsources --nopush \
|
| |
--component "$component" --module "$module" --version "$version" \
|
| |
--clone-po4a --clone-po4a-version "$po4a_new"
|
| |
|
| |
the stats scripts is run after the global l10n pot update, but if it completely fails, there is no l10n folder to take translations from
the motivation to link both script is to reuses the "l10n" directory containing all po files, saving time & bandwith, and making sure stats match the reality