Create Bezel Configs

Creates generic config files from a template

Simply fill in the parameters and run the ".sh" script

TEMPLATE_PATH="/home/crow/NAS/RomProject/temp/template.cfg"
CONFIG_EXT=".cfg"
BEZ_EXT=".png"
BEZ_DIR="/home/crow/NAS/RomProject/temp/bezel-imgs/"
OUTPUT_DIR="/home/crow/NAS/RomProject/temp/bezel-configs/"

TEMPLATE_BASE_NAME=$(basename "$TEMPLATE_PATH")
IN_FILES="$BEZ_DIR*$BEZ_EXT"

for f in $IN_FILES
do
  base_name=$(basename "$f" $BEZ_EXT)
  cp "$TEMPLATE_PATH" "$OUTPUT_DIR"
  mv "$OUTPUT_DIR$TEMPLATE_BASE_NAME" "$OUTPUT_DIR$base_name$CONFIG_EXT"

  echo "Processing: $f"

done
My Keybase Page: https://keybase.io/benjamichaelson Follow Me!