#!/bin/bash
# Run this script to take an xpm generated by the gimp and format it for
# use Audacity
for arg in $@
do
  filename=$(tempfile)
  cat $arg| sed -e 's/\_xpm\[\]/\[\]/' -e 's/^static char \*/static const char  \*/' > $filename
  mv  $filename $arg

done
