Browse Source

Add dev-2.1.x to 'mfinfo' script

Scott Lahteine 5 years ago
parent
commit
7f15968ce7
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      buildroot/share/git/mfinfo

+ 5
- 5
buildroot/share/git/mfinfo View File

7
 #   - Remote (upstream) Org name (MarlinFirmware)
7
 #   - Remote (upstream) Org name (MarlinFirmware)
8
 #   - Remote (origin) Org name (your Github username)
8
 #   - Remote (origin) Org name (your Github username)
9
 #   - Repo Name (Marlin, MarlinDocumentation)
9
 #   - Repo Name (Marlin, MarlinDocumentation)
10
-#   - PR Target branch (bugfix-1.1.x, bugfix-2.0.x, etc.)
10
+#   - PR Target branch (bugfix-1.1.x, bugfix-2.0.x, dev-2.1.x, etc.)
11
 #   - Branch Arg (the branch argument or current branch)
11
 #   - Branch Arg (the branch argument or current branch)
12
 #   - Current Branch
12
 #   - Current Branch
13
 #
13
 #
42
 
42
 
43
   case "$opt" in
43
   case "$opt" in
44
     -*|--*) MORE="$MORE$opt " ; [[ $EQUALS == 1 ]] && MORE="$MORE=$val" ;;
44
     -*|--*) MORE="$MORE$opt " ; [[ $EQUALS == 1 ]] && MORE="$MORE=$val" ;;
45
-       1|2) INDEX=$opt ;;
45
+     1|2|3) INDEX=$opt ;;
46
          *) BRANCH="$opt" ;;
46
          *) BRANCH="$opt" ;;
47
   esac
47
   esac
48
 
48
 
49
 done
49
 done
50
 
50
 
51
 case "$REPO" in
51
 case "$REPO" in
52
-  Marlin              ) TARG=bugfix-1.1.x ; [[ $INDEX == 2 ]] && TARG=bugfix-2.0.x ;;
52
+  Marlin              ) TARG=bugfix-1.1.x ; [[ $INDEX == 2 ]] && TARG=bugfix-2.0.x ; [[ $INDEX == 3 ]] && TARG=dev-2.1.x ;;
53
   MarlinDocumentation ) TARG=master ;;
53
   MarlinDocumentation ) TARG=master ;;
54
 esac
54
 esac
55
 
55
 
56
-[[ $BRANCH =~ ^[0-9]$ ]] && USAGE=1
56
+[[ $BRANCH =~ ^[123]$ ]] && USAGE=1
57
 
57
 
58
-[[ $USAGE == 1 ]] && { echo "usage: `basename $0` [1|2] [branch]" 1>&2 ; exit 1 ; }
58
+[[ $USAGE == 1 ]] && { echo "usage: `basename $0` [1|2|3] [branch]" 1>&2 ; exit 1 ; }
59
 
59
 
60
 echo "$ORG $FORK $REPO $TARG $BRANCH $CURR $MORE"
60
 echo "$ORG $FORK $REPO $TARG $BRANCH $CURR $MORE"

Loading…
Cancel
Save