Generate Doxygen from configure (#952)
* Generate Doxygen from configure Use case: view the ./configure help text on the web. This has been requested in https://forum.mysensors.org/post/77751 Manually putting the help text in the forum or on mysensors.org would lead to diverging documentation, no version management and extra maintenance burden. This commit attempts to auto-generate the documentation and use existing Doxygen infrastructure to add the help text to the rest of the MySensors documentation.
This commit is contained in:
committed by
Patrick Fallberg
parent
901258f165
commit
adfd9f36f1
+7
-1
@@ -1,6 +1,12 @@
|
||||
#!groovy
|
||||
def call(config) {
|
||||
config.pr.setBuildStatus(config, 'PENDING', 'Toll gate (Documentation)', 'Generating...', '${BUILD_URL}flowGraphTable/')
|
||||
// Generate doxygen file for Raspberry Pi configure command
|
||||
sh """#!/bin/bash +x
|
||||
cd ${config.repository_root}
|
||||
echo -e "/**\n * @defgroup RaspberryPiGateway Raspberry Pi Gateway\n * @ingroup MyConfigGrp\n * @brief Configuration options for the Raspberry Pi Gateway\n@{\n@verbatim" > configure.h
|
||||
grep -A999 '<<EOF' configure | grep -B999 EOF | grep -v 'EOF' >> configure.h
|
||||
echo -e "@endverbatim\n@}*/\n" >> configure.h"""
|
||||
sh """#!/bin/bash +x
|
||||
cd ${config.repository_root}
|
||||
export PROJECTNUMBER=\$(
|
||||
@@ -44,4 +50,4 @@ def call(config) {
|
||||
}
|
||||
}
|
||||
|
||||
return this
|
||||
return this
|
||||
|
||||
Reference in New Issue
Block a user