#!/bin/bash
# DECK Extract - Separates monolithic HTML into 3 files
# Usage: ./extract.sh deck.html [output_dir]
set -e
INPUT="${1:-deck.html}"
OUTDIR="${2:-.}"
if [ ! -f "$INPUT" ]; then
echo "Error: $INPUT not found"
exit 1
fi
mkdir -p "$OUTDIR"
# Extract CSS (between , excluding the tags themselves)
awk '/