Andrew Tridgell 3 жил өмнө
parent
commit
6866e52ba8

+ 1 - 0
RemoteIDModule/Makefile

@@ -24,6 +24,7 @@ setup:
 
 build/$(BUILD_DIR)/RemoteIDModule.ino.bin: *.cpp *.ino *.h
 	@echo "Building $@"
+	@../scripts/git-version.sh
 	@$(ARDUINO_CLI) compile --export-binaries --fqbn $(ESP32_FQBN) .
 
 boards:

+ 1 - 4
scripts/git-version.sh

@@ -1,7 +1,4 @@
 #!/bin/bash
-cat <<EOF > RemoteIDModule/git-version.h
+cat <<EOF > git-version.h
 #define GIT_VERSION 0x$(git describe --always)
 EOF
-
-
-

+ 2 - 1
scripts/regen_headers.sh

@@ -19,4 +19,5 @@ for p in $PACKETS; do
     )
 done
 
-scripts/git-version.sh
+(cd RemoteIDModule && scripts/git-version.sh)
+