-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get_config.sh: Add in script to easily get current build configuration
- Loading branch information
Showing
2 changed files
with
46 additions
and
6 deletions.
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,30 @@ | ||
#/bin/bash | ||
|
||
# | ||
# This is a helper script to get what the current build configuration is | ||
# | ||
|
||
TAGS=0 | ||
if [ -f config.log ] ; then | ||
echo "Last ./configure build" | ||
echo "" | ||
cat config.log | egrep " libcoap| host s" | cut -d\ -f7- | ||
cat config.log | egrep "result: " | cut -d\ -f3- | cut -d\ -f7- | ||
echo "" | ||
TAGS=1 | ||
fi | ||
for f in `find . -name CMakeCache.txt -print` ; do | ||
DIR=`dirname $f` | ||
echo "Last cmake build in $DIR" | ||
echo "" | ||
(cd $DIR ; cmake -LH . | cut -d\ -f2- | egrep "\.\." | egrep "^[A-Z][A-Z]") | ||
echo "" | ||
TAGS=1 | ||
done | ||
|
||
if [ "$TAGS" = 0 ] ; then | ||
echo "Current git source" | ||
echo "" | ||
git describe --tags --dirty --always | ||
echo "" | ||
fi |