update.sh 607 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. #
  3. # SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. #
  6. # Update Nextcloud server and apps from latest git master
  7. # For local development environment
  8. # Use from Nextcloud server folder with `./build/update.sh`
  9. # Update server
  10. printf "\n\033[1m${PWD##*/}\033[0m\n"
  11. git checkout master
  12. git pull --quiet -p
  13. git --no-pager log -3 --pretty=format:"%h %Cblue%ar%x09%an %Creset%s"
  14. printf "\n"
  15. git branch --merged master | grep -v "master$" | xargs git branch -d
  16. git submodule update --init
  17. # Update apps
  18. source ./build/update-apps.sh