mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
11 lines
284 B
Bash
Executable File
11 lines
284 B
Bash
Executable File
#!/bin/bash
|
|
# purpose: GIT post-commit
|
|
# change value of BUILD_GIT macro
|
|
#
|
|
WORKDIR=src
|
|
CUSTOM_H=${WORKDIR}/Custom.h
|
|
GLOBAL_H=${WORKDIR}/ESPEasy-Globals.h
|
|
|
|
[[ -f ${CUSTOM_H} ]] && \
|
|
sed -i.bak -e "s/\(#define BUILD_GIT\).*/\1 \"$(git log -1 --pretty=format:%h HEAD)\"/" ${CUSTOM_H}
|