My Marlin configs for Fabrikator Mini and CTC i3 Pro B
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.

mfqp 583B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. #
  3. # mfqp
  4. #
  5. # Add all changed files, commit as "patch", do `mfrb` and `git push -f`
  6. #
  7. MFINFO=$(mfinfo) || exit
  8. IFS=' ' read -a INFO <<< "$MFINFO"
  9. if [[ ${INFO[4]} == "(no" ]]; then
  10. echo "Branch is unavailable!" ; exit 1
  11. fi
  12. case "$#" in
  13. 0 ) ;;
  14. * ) echo "Usage: `basename $0`" 1>&2 ; exit 1 ;;
  15. esac
  16. git add * .travis.yml
  17. git commit -m "patch"
  18. if [[ ${INFO[3]} == ${INFO[4]} ]]; then
  19. if [[ ${INFO[2]} == "MarlinDocumentation" ]]; then
  20. git rebase -i HEAD~2
  21. else
  22. echo "Don't alter the PR target branch."; exit 1
  23. fi
  24. else
  25. mfrb
  26. git push -f
  27. fi