#!/bin/sh echo "# DO NOT EDIT!" echo "# generated with $0" echo "extends Node" echo echo "var pieces = {" comm="res://assets/chess" for piece in $(find ../assets/chess/ -type d -maxdepth 1 | sort); do piece="${piece##../assets/chess/}" if [ "${piece}" = "" ]; then continue fi cat <