#!/usr/bin/env bash outfile=Ringlist.xml echo -e "" >$outfile for filename in *.pcm *.raw; do if [ -f $filename ]; then echo -e "\t" >>$outfile echo -e "\t\t${filename%.*}" >>$outfile echo -e "\t\t${filename}" >>$outfile echo -e "\t" >>$outfile fi done echo -e "" >>$outfile [ -f DistinctiveRinglist.xml ] || ln -s Ringlist.xml DistinctiveRinglist.xml [ -f distinctiveringlist.xml ] || ln -s Ringlist.xml distinctiveringlist.xml [ -f ringlist.xml ] || ln -s Ringlist.xml ringlist.xml for x in *.pcm *.xml *.raw; do [ -f $x ] && ../../etc/certs/signfile $x done