2019-05-10 12:59:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Update Nextcloud server and apps from latest git master
|
|
|
|
# For local development environment
|
|
|
|
# Use from Nextcloud server folder with `./build/update.sh`
|
|
|
|
|
|
|
|
# Update server
|
|
|
|
printf "\n\033[1m${PWD##*/}\033[0m\n"
|
|
|
|
git checkout master
|
2019-05-14 13:08:38 +00:00
|
|
|
git pull --quiet -p
|
2019-05-10 12:59:08 +00:00
|
|
|
git --no-pager log -3 --pretty=format:"%h %Cblue%ar%x09%an %Creset%s"
|
|
|
|
printf "\n"
|
2019-05-17 20:49:33 +00:00
|
|
|
git branch --merged master | grep -v "master$" | xargs git branch -d
|
2019-05-10 13:05:38 +00:00
|
|
|
git submodule update --init
|
2019-05-10 12:59:08 +00:00
|
|
|
|
|
|
|
# Update apps
|
|
|
|
source ./build/update-apps.sh
|