Update generate_version

This commit is contained in:
Scott Lahteine 2019-07-05 03:40:32 -05:00
parent 31450d9d6b
commit f69e02ef04

View file

@ -5,7 +5,20 @@
# Make a _Version.h file
#
DIR="${1}"
DIR=${1:-"Marlin/src/inc"}
# MRCC3=$( git merge-base HEAD upstream/bugfix-2.0.x 2>/dev/null )
# MRCC2=$( git merge-base HEAD upstream/bugfix-1.1.x 2>/dev/null )
# MRCC1=$( git merge-base HEAD upstream/1.1.x 2>/dev/null )
# BASE='?'
# if [[ -n $MRCC3 && $MRCC3 != $MRCC2 ]]; then
# BASE=bugfix-2.0.x
# elif [[ -n $MRCC2 ]]; then
# BASE=bugfix-1.1.x
# elif [[ -n $MRCC1 ]]; then
# BASE=1.1.x
# fi
BUILDATE=$(date '+%s')
DISTDATE=$(date '+%Y-%m-%d %H:%M')