mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
refactor: Rename all file/folders to camelCase
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Add the engine262 repository as a git subtree (squashed)
|
||||
# Usage: ./setup/initEngine262.sh
|
||||
# This will add the repository at ./engine262 using a squashed subtree
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
REPO_URL="https://github.com/bendtherules/engine262"
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||||
TARGET_DIR="${REPO_ROOT}/engine262"
|
||||
|
||||
# Add the repository as a git subtree (squashed)
|
||||
# If the target directory already exists, assume the subtree is present.
|
||||
if [ ! -d "$TARGET_DIR" ]; then
|
||||
git -C "${REPO_ROOT}" subtree add --prefix=engine262 "$REPO_URL" main --squash
|
||||
else
|
||||
echo "Subtree already present at $TARGET_DIR"
|
||||
fi
|
||||
|
||||
echo "Subtree added and initialized at ./$TARGET_DIR"
|
||||
Reference in New Issue
Block a user