Scripts: Add -only-download option to Linux deps

This commit is contained in:
Stenzek 2024-12-29 20:21:34 +10:00
parent 242561debf
commit ab107722f7
No known key found for this signature in database
1 changed files with 10 additions and 1 deletions

View File

@ -6,7 +6,7 @@
set -e set -e
if [ "$#" -lt 1 ]; then if [ "$#" -lt 1 ]; then
echo "Syntax: $0 [-system-freetype] [-system-harfbuzz] [-system-libjpeg] [-system-libpng] [-system-libwebp] [-system-libzip] [-system-zstd] [-system-qt] [-skip-download] [-skip-cleanup] <output directory>" echo "Syntax: $0 [-system-freetype] [-system-harfbuzz] [-system-libjpeg] [-system-libpng] [-system-libwebp] [-system-libzip] [-system-zstd] [-system-qt] [-skip-download] [-skip-cleanup] [-only-download] <output directory>"
exit 1 exit 1
fi fi
@ -51,6 +51,10 @@ for arg in "$@"; do
echo "Not removing build directory." echo "Not removing build directory."
SKIP_CLEANUP=true SKIP_CLEANUP=true
shift shift
elif [ "$arg" == "-only-download" ]; then
echo "Only downloading sources."
ONLY_DOWNLOAD=true
shift
fi fi
done done
@ -188,6 +192,11 @@ if [ "$SKIP_DOWNLOAD" != true ]; then
fi fi
fi fi
# Only downloading sources?
if [ "$ONLY_DOWNLOAD" == true ]; then
exit 0
fi
echo "Building libbacktrace..." echo "Building libbacktrace..."
rm -fr "libbacktrace-$LIBBACKTRACE" rm -fr "libbacktrace-$LIBBACKTRACE"
tar xf "$LIBBACKTRACE.tar.gz" tar xf "$LIBBACKTRACE.tar.gz"