Browse Source

Update generate_version

Scott Lahteine 5 years ago
parent
commit
f69e02ef04
1 changed files with 14 additions and 1 deletions
  1. 14
    1
      buildroot/bin/generate_version

+ 14
- 1
buildroot/bin/generate_version View File

5
 # Make a _Version.h file
5
 # Make a _Version.h file
6
 #
6
 #
7
 
7
 
8
-DIR="${1}"
8
+DIR=${1:-"Marlin/src/inc"}
9
+
10
+# MRCC3=$( git merge-base HEAD upstream/bugfix-2.0.x 2>/dev/null )
11
+# MRCC2=$( git merge-base HEAD upstream/bugfix-1.1.x 2>/dev/null )
12
+# MRCC1=$( git merge-base HEAD upstream/1.1.x 2>/dev/null )
13
+
14
+# BASE='?'
15
+# if [[ -n $MRCC3 && $MRCC3 != $MRCC2 ]]; then
16
+#   BASE=bugfix-2.0.x
17
+# elif [[ -n $MRCC2 ]]; then
18
+#   BASE=bugfix-1.1.x
19
+# elif [[ -n $MRCC1 ]]; then
20
+#   BASE=1.1.x
21
+# fi
9
 
22
 
10
 BUILDATE=$(date '+%s')
23
 BUILDATE=$(date '+%s')
11
 DISTDATE=$(date '+%Y-%m-%d %H:%M')
24
 DISTDATE=$(date '+%Y-%m-%d %H:%M')

Loading…
Cancel
Save