🔖 Moving to bugfix-2.1.x
This commit is contained in:
committed by
Scott Lahteine
parent
ece124fdea
commit
7677368aaf
@ -52,7 +52,7 @@ if [[ $ACTION == "manual" ]]; then
|
||||
git checkout $IMPORT || exit
|
||||
|
||||
# Reset from the latest complete state
|
||||
#git reset --hard bugfix-2.0.x
|
||||
#git reset --hard bugfix-2.1.x
|
||||
|
||||
cp "$MARLINREPO/Marlin/"Configuration*.h "$CDEF/"
|
||||
#git add . && git commit -m "Changes from Marlin ($(date '+%Y-%m-%d %H:%M'))."
|
||||
|
@ -3,7 +3,7 @@
|
||||
# mffp [1|2] [ref]
|
||||
#
|
||||
# Push the given commit (or HEAD) upstream immediately.
|
||||
# By default: `git push upstream HEAD:bugfix-2.0.x`
|
||||
# By default: `git push upstream HEAD:bugfix-2.1.x`
|
||||
#
|
||||
|
||||
usage() { echo "usage: `basename $0` [1|2] [ref]" 1>&2 ; }
|
||||
|
@ -7,13 +7,13 @@
|
||||
# - Remote (upstream) Org name (MarlinFirmware)
|
||||
# - Remote (origin) Org name (your Github username)
|
||||
# - Repo Name (Marlin, MarlinDocumentation)
|
||||
# - PR Target branch (e.g., bugfix-2.0.x)
|
||||
# - PR Target branch (e.g., bugfix-2.1.x)
|
||||
# - Branch Arg (the branch argument or current branch)
|
||||
# - Current Branch
|
||||
#
|
||||
# Example output
|
||||
# > mfinfo -q ongoing
|
||||
# MarlinFirmware john.doe Marlin bugfix-2.0.x ongoing bugfix-2.0.x -q
|
||||
# MarlinFirmware john.doe Marlin bugfix-2.1.x ongoing bugfix-2.1.x -q
|
||||
#
|
||||
|
||||
CURR=$(git branch 2>/dev/null | grep ^* | sed 's/\* //g')
|
||||
@ -55,7 +55,7 @@ while [[ $# -gt 0 ]]; do
|
||||
done
|
||||
|
||||
case "$REPO" in
|
||||
Marlin ) TARG=bugfix-2.0.x ; ((INDEX == 1)) && TARG=bugfix-1.1.x ; [[ $BRANCH =~ ^[12]$ ]] && USAGE=1 ;;
|
||||
Marlin ) TARG=bugfix-2.1.x ; ((INDEX == 1)) && TARG=bugfix-1.1.x ; [[ $BRANCH =~ ^[12]$ ]] && USAGE=1 ;;
|
||||
Configurations ) TARG=import-2.0.x ;;
|
||||
MarlinDocumentation ) TARG=master ;;
|
||||
AutoBuildMarlin ) TARG=master ;;
|
||||
|
@ -2,11 +2,11 @@
|
||||
#
|
||||
# mfprep tag1 [tag2]
|
||||
#
|
||||
# Find commits in bugfix-2.0.x that are not yet in 2.0.x.
|
||||
# Find commits in bugfix-2.1.x that are not yet in 2.0.x.
|
||||
#
|
||||
# Specify a version tag to start from, and optional version tag to end at.
|
||||
# For bugfix-2.0.x the tag will be prefixed by bf- to distinguish it from the version tag,
|
||||
# so at every release be sure to create a bf- tag and publish it to origin.
|
||||
# For bugfix-2.1.x the tag will be prefixed by dev- to distinguish it from the version tag,
|
||||
# so at every release be sure to create a dev- tag and publish it to origin.
|
||||
#
|
||||
|
||||
SED=$(which gsed sed | head -n1)
|
||||
@ -22,12 +22,12 @@ DEST=2.1.x
|
||||
|
||||
# Validate that the required tags exist
|
||||
|
||||
MTAG=`git tag | grep -e "^bf-$TAG1\$"`
|
||||
[[ -n "$MTAG" ]] || { echo "Can't find tag bf-$TAG1" ; exit 1 ; }
|
||||
MTAG=`git tag | grep -e "^dev-$TAG1\$"`
|
||||
[[ -n "$MTAG" ]] || { echo "Can't find tag dev-$TAG1" ; exit 1 ; }
|
||||
MTAG=`git tag | grep -e "^$TAG1\$"`
|
||||
[[ -n "$MTAG" ]] || { echo "Can't find tag $TAG1" ; exit 1 ; }
|
||||
|
||||
# Generate log of recent commits for bugfix-2.0.x and DEST
|
||||
# Generate log of recent commits for bugfix-2.1.x and DEST
|
||||
|
||||
TMPDIR=`mktemp -d`
|
||||
LOGB="$TMPDIR/log-bf.txt"
|
||||
@ -35,11 +35,11 @@ LOG2="$TMPDIR/log-2x.txt"
|
||||
TMPF="$TMPDIR/tmp.txt"
|
||||
SCRF="$TMPDIR/update-$DEST.sh"
|
||||
|
||||
git checkout bugfix-2.0.x
|
||||
git log --pretty="[%h] %s" bf-$TAG1..$TAG2 | grep -v '\[cron\]' | $SED '1!G;h;$!d' >"$LOGB"
|
||||
git checkout bugfix-2.1.x
|
||||
git log --pretty="[%h] %s" dev-$TAG1..$TAG2 | grep -v '\[cron\]' | $SED '1!G;h;$!d' >"$LOGB"
|
||||
|
||||
git checkout $DEST
|
||||
git log --pretty="[%h] %s" $TAG1..$TAG2 | $SED '1!G;h;$!d' >"$LOG2" || { echo "Can't find tag bf-$TAG1" ; exit 1 ; }
|
||||
git log --pretty="[%h] %s" $TAG1..$TAG2 | $SED '1!G;h;$!d' >"$LOG2" || { echo "Can't find tag dev-$TAG1" ; exit 1 ; }
|
||||
|
||||
# Go through commit text from DEST removing all matches from the bugfix log
|
||||
|
||||
|
Reference in New Issue
Block a user