CI: Only run autogen.sh if it has not already run.

This commit is contained in:
Jia Tan 2023-01-12 23:02:20 +08:00
parent 32287dc8de
commit 0dec634e70
1 changed files with 9 additions and 4 deletions

View File

@ -102,12 +102,17 @@ if [ "$PHASE" = "all" ] || [ "$PHASE" = "build" ]; then
mkdir -p "$DEST_DIR" mkdir -p "$DEST_DIR"
case $BUILD_SYSTEM in case $BUILD_SYSTEM in
autotools) autotools)
# Run autogen.sh script
cd "$SRC_DIR" cd "$SRC_DIR"
"./autogen.sh"
cd "$DEST_DIR"
# Generate configure option values
# Run autogen.sh script if not already run
if [ ! -f configure ]
then
"./autogen.sh"
fi
cd "$DEST_DIR"
# Generate configure option values
EXTRA_OPTIONS="" EXTRA_OPTIONS=""
FILTER_LIST="lzma1,lzma2" FILTER_LIST="lzma1,lzma2"