Skip to content

Commit bd382fb

Browse files
committed
🔨 Suppress generate_version (for now)
1 parent f3be22c commit bd382fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

buildroot/bin/generate_version

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@
33
# generate_version
44
#
55
# Make a Version.h file to accompany CUSTOM_VERSION_FILE
6+
# Invoked automatically by Arduino IDE
67
#
78
# Authors: jbrazio, thinkyhead, InsanityAutomation, rfinnie
89
#
910

1011
set -e
1112

13+
# Only run if ALLOW_GENERATE_VERSION is set
14+
if [[ "$ALLOW_GENERATE_VERSION" != "1" ]]; then
15+
echo "Skipping generate_version because ALLOW_GENERATE_VERSION is not set."
16+
exit 0
17+
fi
18+
1219
DIR="${1:-Marlin}"
1320
READ_FILE="${READ_FILE:-${DIR}/Version.h}"
1421
WRITE_FILE="${WRITE_FILE:-${READ_FILE}}"

0 commit comments

Comments
 (0)