#!/bin/bash
OUTPUT="./items.js"

echo "// Auto-generated file" > "$OUTPUT"
echo "const items = [" >> "$OUTPUT"

for f in ./*.gif; do
    [ -f "$f" ] || continue
    filename=$(basename "$f")
    echo "  '$filename'," >> "$OUTPUT"
done

echo "];" >> "$OUTPUT"
