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 516B

12345678910111213141516171819202122232425262728
  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. [[ $# == 0 ]] || { echo "Usage: `basename $0`" 1>&2 ; exit 1; }
  8. MFINFO=$(mfinfo) || exit 1
  9. IFS=' ' read -a INFO <<< "$MFINFO"
  10. REPO=${INFO[2]}
  11. TARG=${INFO[3]}
  12. BRANCH=${INFO[5]}
  13. git add .
  14. git commit -m "patch"
  15. if [[ $BRANCH == $TARG ]]; then
  16. if [[ $REPO == "MarlinDocumentation" ]]; then
  17. git rebase -i HEAD~2
  18. else
  19. echo "Don't alter the PR Target branch."; exit 1
  20. fi
  21. else
  22. mfrb
  23. git push -f
  24. fi