You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
366 B

  1. #!/usr/bin/env bash
  2. if (( $# < 1 ));
  3. then
  4. echo "USAGE: ./merge-release.sh 0.76.0"
  5. exit 1
  6. fi
  7. die() { echo "$*" 1>&2 ; exit 1; }
  8. v=$1
  9. git merge "release-${v}" || die;
  10. git push || die;
  11. git checkout stable || die;
  12. git reset --hard "v${v}" || die;
  13. git push -f || die;
  14. git checkout master || die;
  15. git subtree push --prefix=docs/ docs-local "tempv${v}";