My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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