You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
649 B
27 lines
649 B
#!/bin/bash
|
|
#
|
|
# regenerate-presets
|
|
#
|
|
# Copyright (c) 2006 D. Michael McIntyre <rosegarden.trumpeter@gmail.com>
|
|
# Released under the GPL
|
|
#
|
|
# REQUIRES: ../scripts/preset-xmlify ../scripts/dehumanize
|
|
#
|
|
#
|
|
# PURPOSE: to run the above scripts without a lot of bothersome typing
|
|
#
|
|
#
|
|
#
|
|
|
|
rm -f presets*.xml
|
|
|
|
for x in presets-editable*.conf; do
|
|
xmlfile=presets`echo $x | sed 's/^presets-editable\(.*\)\.conf$/\1/'`.xml
|
|
../../scripts/preset-xmlify < "$x" > "$xmlfile" && \
|
|
../../scripts/dehumanize "$xmlfile" || \
|
|
echo "Something went wrong. $xmlfile is probably mangled."
|
|
chmod -w "$xmlfile"
|
|
echo $xmlfile updated successfully
|
|
done
|
|
|