Files
monica/scripts/update-langs.sh
T
2018-06-10 16:49:16 +02:00

28 lines
519 B
Bash
Executable File

#!/bin/bash
l10nbranch=l10n_master3
newbranch=$(date -Idate)-update-i18n
origin=origin
git checkout master
# Clean
git branch -D $l10nbranch || true
git branch -D $origin/$l10nbranch || true
git branch -D $newbranch || true
# Create new branch
git fetch $origin
git checkout -b $newbranch $origin/$l10nbranch
# Merge from master
git merge $origin/master
# Update the new branch
php artisan lang:generate
git add public/js/langs/*.json
git commit -m "Update jsons"
# Push it to remote
git push $origin $newbranch