left4me/examples/script-overlays/competitive_rework.sh
mwiegand 196d2db33e
feat(l4d2-web): seed example script overlays from examples/script-overlays/
Bundles four reference script overlays (cedapug_maps, l4d2center_maps,
competitive_rework, tickrate) and adds a `flask seed-script-overlays`
CLI that upserts each *.sh as a system-wide overlay. Test deploy
invokes it after the orphan-cleanup migration so fresh test servers
come up with the same overlays the user has been maintaining by hand.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 18:41:08 +02:00

15 lines
585 B
Bash

#!/bin/bash
# L4D2 Competitive Rework overlay.
# Pulls the master branch of SirPlease/L4D2-Competitive-Rework as a tarball
# and extracts it into $OVERLAY/left4dead2/. Skipped on subsequent rebuilds
# once cfg/cfgogl/ is present — wipe the overlay to force a refresh.
# https://github.com/SirPlease/L4D2-Competitive-Rework
set -xeuo pipefail
DEST="$OVERLAY/left4dead2"
mkdir -p "$DEST"
if [[ ! -d "$DEST/cfg/cfgogl" ]]; then
curl -fsSL https://github.com/SirPlease/L4D2-Competitive-Rework/archive/refs/heads/master.tar.gz \
| tar -xz --strip-components=1 -C "$DEST"
fi