Skip to content

Commit 8643b65

Browse files
authored
Update generate_build_info.sh
1 parent 25f2787 commit 8643b65

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generate_build_info.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
# set -e # Exit immediately if a command exits with a non-zero status.
1212

13+
if [ -z "$1" ]; then
14+
echo "Usage: $0 <output_file_path>"
15+
exit 1
16+
fi
17+
OUTPUT_FILE=$1
18+
1319
# --- Helper Functions ---
1420

1521
# Function to get version from a command's output
@@ -213,7 +219,6 @@ fi
213219
# --- Final File Generation ---
214220

215221
INPUT_FILE="source_io/build_info.h.in"
216-
OUTPUT_FILE="source_io/build_info.h"
217222

218223
# Use sed to replace all placeholders with detected values
219224
# Note the use of different delimiters (#) for paths to avoid conflicts with /

0 commit comments

Comments
 (0)