2 # Copyright (C) 2022 by the Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 # This script assumes that you have the 'fork' set as the 'origin'.
22 # 0. Stash all the local changes.
23 # 1. Delete the update-po branch if it exists locally
24 # 2. create a new branch update-po
25 # 3. run the scripts/update-po.sh script.
26 # 4. Commit the changes made by the script
27 # 5. Push the branch to gitlab and create a merge request.
28 # 6. Go back to the previous branch.
32 # Stash anything in the current page.
35 # Force delete the update-po branch if it exists locally.
36 git branch
-D update-po
38 # Fetch all remote changes.
41 # Create a new branch.
42 git checkout
-b update-po upstream
/master
44 # Run the update po command.
45 parent_path
=$
( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
46 $parent_path/update-po.sh
48 # Add the files and comment.
49 git add src
/postorius
/locale
/*
50 git commit
-m 'Update po files'
51 git push
-o merge_request.create
-o merge_request.remove_source_branch origin update-po
53 # Go back to the original directory and git branch.