-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add githash and receiver uptime to stream
- Loading branch information
1 parent
e795f29
commit 869aaeb
Showing
5 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define GIT_HASH "e795f29+" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
HASH=$(git describe --always --dirty=+ | tr -d '\n') | ||
|
||
echo \#define GIT_HASH \"$HASH\" > githash.h.tmp | ||
echo $HASH > githash | ||
|
||
cmp -s githash.h githash.h.tmp > /dev/null | ||
|
||
if [ "$?" -ne "0" ] | ||
then | ||
mv githash.h.tmp githash.h | ||
echo updated githash.h | ||
else | ||
rm githash.h.tmp | ||
fi | ||
|
||
|