mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-04 20:13:38 +08:00
Show source version in the makefile logs
This commit is contained in:
parent
ad81004523
commit
0ed190936d
3 changed files with 12 additions and 0 deletions
|
@ -390,6 +390,7 @@ endif
|
||||||
###################
|
###################
|
||||||
|
|
||||||
$(info ===================================================================)
|
$(info ===================================================================)
|
||||||
|
$(info Version info: $(shell ../tools/mkversion.sh --short 2>/dev/null))
|
||||||
$(info Client platform: $(platform))
|
$(info Client platform: $(platform))
|
||||||
|
|
||||||
ifeq ($(SKIPQT),1)
|
ifeq ($(SKIPQT),1)
|
||||||
|
|
|
@ -221,6 +221,7 @@ export PLATFORM_DEFS_INFO_STANDALONE
|
||||||
export PLATFORM_CHANGED
|
export PLATFORM_CHANGED
|
||||||
|
|
||||||
$(info ===================================================================)
|
$(info ===================================================================)
|
||||||
|
$(info Version info: $(shell tools/mkversion.sh --short 2>/dev/null || ../tools/mkversion.sh --short 2>/dev/null))
|
||||||
$(info Platform name: $(PLTNAME))
|
$(info Platform name: $(PLTNAME))
|
||||||
$(info PLATFORM: $(PLATFORM))
|
$(info PLATFORM: $(PLATFORM))
|
||||||
$(info PLATFORM_FPGA: $(PLATFORM_FPGA))
|
$(info PLATFORM_FPGA: $(PLATFORM_FPGA))
|
||||||
|
|
|
@ -8,6 +8,12 @@
|
||||||
export LC_ALL="C"
|
export LC_ALL="C"
|
||||||
export LANG="C"
|
export LANG="C"
|
||||||
|
|
||||||
|
SHORT=false
|
||||||
|
if [ "$1" = "--short" ]; then
|
||||||
|
SHORT=true
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
# if you are making your own fork, change this line to reflect your fork-name
|
# if you are making your own fork, change this line to reflect your fork-name
|
||||||
fullgitinfo="RRG/Iceman"
|
fullgitinfo="RRG/Iceman"
|
||||||
# GIT status 0 = dirty, 1 = clean , 2 = undecided
|
# GIT status 0 = dirty, 1 = clean , 2 = undecided
|
||||||
|
@ -40,6 +46,10 @@ else
|
||||||
# POSIX way...
|
# POSIX way...
|
||||||
ctime=${dl_time%.*}
|
ctime=${dl_time%.*}
|
||||||
fi
|
fi
|
||||||
|
if $SHORT; then
|
||||||
|
echo "$fullgitinfo"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Crop so it fits within 50 characters C string, so max 49 chars
|
# Crop so it fits within 50 characters C string, so max 49 chars
|
||||||
# POSIX way
|
# POSIX way
|
||||||
|
|
Loading…
Reference in a new issue