File: weblate-po-merge

package info (click to toggle)
debian-reference 2.138
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,016 kB
  • sloc: python: 586; makefile: 575; sh: 528; sed: 80; xml: 36
file content (16 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh -e
# vim: set sw=2 expandtab:
# simple script to merge weblate po files without creating tracking branch
# See https://docs.weblate.org/en/latest/admin/continuous.html
MAIN_BRANCH="latest"
ORIGIN_WEBLATE="weblate"
#wlc lock
git checkout "$MAIN_BRANCH"
git pull --rebase
wlc commit
git remote update "$ORIGIN_WEBLATE"
git merge "$ORIGIN_WEBLATE"/"$MAIN_BRANCH"
git push
wlc pull
git remote update "$ORIGIN_WEBLATE"
#wlc unlock