mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
16 lines
413 B
Bash
Executable File
16 lines
413 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -exo pipefail
|
|
|
|
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
|
|
|
|
WEBKIT_TAG=$(grep 'set(WEBKIT_TAG' "CMakeLists.txt" | awk '{print $2}' | cut -f 1 -d ')')
|
|
if [ -z "${WEBKIT_TAG}" ]; then
|
|
echo "Could not find WEBKIT_TAG in CMakeLists.txt"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Setting WebKit submodule to ${WEBKIT_TAG}"
|
|
cd src/bun.js/WebKit
|
|
git fetch origin "${WEBKIT_TAG}"
|
|
git reset --hard "${WEBKIT_TAG}"
|