Skip to content

Commit

Permalink
Scripts: Add -only-download option to Linux deps
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Dec 29, 2024
1 parent 242561d commit ab10772
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/deps/build-dependencies-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -e

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
fi

Expand Down Expand Up @@ -51,6 +51,10 @@ for arg in "$@"; do
echo "Not removing build directory."
SKIP_CLEANUP=true
shift
elif [ "$arg" == "-only-download" ]; then
echo "Only downloading sources."
ONLY_DOWNLOAD=true
shift
fi
done

Expand Down Expand Up @@ -188,6 +192,11 @@ if [ "$SKIP_DOWNLOAD" != true ]; then
fi
fi

# Only downloading sources?
if [ "$ONLY_DOWNLOAD" == true ]; then
exit 0
fi

echo "Building libbacktrace..."
rm -fr "libbacktrace-$LIBBACKTRACE"
tar xf "$LIBBACKTRACE.tar.gz"
Expand Down

0 comments on commit ab10772

Please sign in to comment.