[r13118]: trunk / rosegarden / scripts / fix-all-rgd-headers Maximize Restore History

Download this file

fix-all-rgd-headers    30 lines (25 with data), 450 Bytes

#!/bin/bash
#
# fix-all-rgd-headers
#
# Copyright (c) 2008  D. Michael McIntyre <rosegarden.trumpeter@gmail.com>
# Released under the GPL
#
# REQUIRES: 
#
#
# PURPOSE:
#
#
#

ohCrap () {
echo $1
exit 1
}

dir=$(basename $PWD)
[ "$dir" == "scripts" ] || ohCrap "must be run from scripts/ directory!"

for f in ../data/library/*.rgd; do
    echo "rewriting header for: $f"
    ./fix-rgd-headers.py $f || ohCrap "something barfed!  abort!"
done

exit 0