We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f2787 commit 8643b65Copy full SHA for 8643b65
generate_build_info.sh
@@ -10,6 +10,12 @@
10
11
# set -e # Exit immediately if a command exits with a non-zero status.
12
13
+if [ -z "$1" ]; then
14
+ echo "Usage: $0 <output_file_path>"
15
+ exit 1
16
+fi
17
+OUTPUT_FILE=$1
18
+
19
# --- Helper Functions ---
20
21
# Function to get version from a command's output
@@ -213,7 +219,6 @@ fi
213
219
# --- Final File Generation ---
214
220
215
221
INPUT_FILE="source_io/build_info.h.in"
216
-OUTPUT_FILE="source_io/build_info.h"
217
222
218
223
# Use sed to replace all placeholders with detected values
224
# Note the use of different delimiters (#) for paths to avoid conflicts with /
0 commit comments