From: Yehor Velykozhon -X (yvelykoz - SOFTSERVE INC at Cisco) Date: Mon, 15 Jan 2024 15:38:58 +0000 (+0000) Subject: Pull request #4163: doc: update arg list for "generate_builtin.sh" X-Git-Tag: 3.1.78.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f19aa0bef387f4e8c53afbf29dcc9269ef49c78f;p=thirdparty%2Fsnort3.git Pull request #4163: doc: update arg list for "generate_builtin.sh" Merge in SNORT/snort3 from ~YVELYKOZ/snort3:generate_script_update to master Squashed commit of the following: commit 2b2b5c45d415a6ffb1cda8b4b1bba098df118460 Author: Yehor Velykozhon Date: Fri Jan 12 15:25:03 2024 +0200 doc: update arg list for "generate_builtin.sh" Add parity to "generate_" scripts arg list, thanks to @puck(https://github.com/puck) for creating a fix. --- diff --git a/doc/reference/CMakeLists.txt b/doc/reference/CMakeLists.txt index ff26f0172..48c89b066 100644 --- a/doc/reference/CMakeLists.txt +++ b/doc/reference/CMakeLists.txt @@ -86,7 +86,7 @@ list ( APPEND BUILT_SOURCES version.txt ) add_custom_command ( OUTPUT builtin.txt - COMMAND ${CMAKE_CURRENT_LIST_DIR}/scripts/generate_builtin.sh $ $ENV{SNORT_PLUGIN_PATH} ${CMAKE_CURRENT_LIST_DIR}/builtin_stubs.txt builtin.txt + COMMAND ${CMAKE_CURRENT_LIST_DIR}/scripts/generate_builtin.sh $ ${CMAKE_CURRENT_LIST_DIR}/builtin_stubs.txt builtin.txt $ENV{SNORT_PLUGIN_PATH} DEPENDS snort COMMENT "Documents: building builtin.txt" ) diff --git a/doc/reference/scripts/generate_builtin.sh b/doc/reference/scripts/generate_builtin.sh index ab2281c0a..b738c663d 100755 --- a/doc/reference/scripts/generate_builtin.sh +++ b/doc/reference/scripts/generate_builtin.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash SNORT_BINARY="$1" -PLUGIN_PATH="$2" -INPUT_FILE="$3" -OUTPUT_FILE="$4" +INPUT_FILE="$2" +OUTPUT_FILE="$3" +PLUGIN_PATH="$4" PLUGIN_ARGS=