diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e61876f9..b9d23e6b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -61,12 +61,22 @@ details, it may not be possible to resolve your issue.** ## libcoap Configuration Summary -Copy all the "libcoap Configuration Summary:" output lines (about 40 lines) here after running -`./configure` (with any options that you have specified) - or -`cmake ..` (with any -D options that you have specified) - or if neither of the above two methods is used (do from within the libcoap directory) -`git describe --tags` +If get_config,sh exists, please copy the output from (do in the top level libcoap directory) :- +``` +./get_config.sh +``` +Else if using ./configure, please copy the output from (do in the top level libcoap directory) :- +``` +cat config.log | egrep "result: | libcoap| host s" | cut -d\ -f3- +``` +Else if using cmake, please copy the output from (do in the cmake build directory) :- +``` +cmake -LH . | cut -d\ -f2- | egrep "\.\." | egrep "^[A-Z][A-Z]" +``` +Else please copy the output from (do from within the libcoap directory) :- +``` +git describe --tags --dirty --always +``` ## Problem Description diff --git a/get_config.sh b/get_config.sh new file mode 100755 index 00000000..ae3a90df --- /dev/null +++ b/get_config.sh @@ -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