mirror of https://github.com/FreeCol/freecol.git
Allow fsgunpack to handle fsm files.
This commit is contained in:
parent
63677db946
commit
a9567f0b35
|
@ -7,15 +7,16 @@
|
||||||
|
|
||||||
for f in ${1+"$@"} ; do
|
for f in ${1+"$@"} ; do
|
||||||
case "x$f" in
|
case "x$f" in
|
||||||
x*.fsg) ;;
|
x*.fsg) EXT=fsg ;;
|
||||||
|
x*.fsm) EXT=fsm ;;
|
||||||
*) echo "not an fsg file: $f" >&2 ; exit 1 ;;
|
*) echo "not an fsg file: $f" >&2 ; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
n=`basename "$f" .fsg`
|
n=`basename "$f" ."$EXT"`
|
||||||
mkdir "$n" || exit $?
|
mkdir "$n" || exit $?
|
||||||
cp "$f" "$n"
|
cp "$f" "$n"
|
||||||
(cd "$n" ;\
|
(cd "$n" ;\
|
||||||
unzip "$n.fsg" 1> /dev/null ;\
|
unzip "$n.$EXT" 1> /dev/null ;\
|
||||||
rm -f "$n.fsg" ;\
|
rm -f "$n.$EXT" ;\
|
||||||
for s in *.xml ; do xml_pp -i "$s" 2> /dev/null ; done) || exit $?
|
for s in *.xml ; do xml_pp -i "$s" 2> /dev/null ; done) || exit $?
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue