30 lines
586 B
Bash
Executable File
30 lines
586 B
Bash
Executable File
#!/bin/bash
|
|
|
|
l10nbranch=l10n_master3
|
|
newbranch=$(date +"%Y-%m-%d")-update-i18n
|
|
origin=origin
|
|
|
|
git checkout master
|
|
|
|
# Clean
|
|
git branch -D $l10nbranch || true
|
|
git branch -D $origin/$l10nbranch || true
|
|
git branch -D $newbranch || true
|
|
git branch -D $origin/$newbranch || true
|
|
|
|
# Create new branch
|
|
git fetch $origin
|
|
git checkout --track $origin/$l10nbranch
|
|
git checkout -b $newbranch
|
|
|
|
# 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
|