A few updates to support latest YMamoto.
[mumble.git] / tools / dot-s-to-sc68.sh
blob5f6eeb30f0cd9b28a4a5e3d2021f6e1dfa922521
1 #!/bin/sh
3 # Wishlist:
4 # - extract title, composer, etc, put into sc68 file properly.
6 # Julian Squires <tek@wiw.org> / 2004
8 # $1 should end in .s
9 if [ X`echo $1 | sed -e s/\.s$//` = X$1 ]; then
10 echo "The argument to this script ($1) should end in \".s\"."
11 exit 1
13 binfile=`echo $1 | sed -e s/\.s$/.bin/`
14 sc68file=`echo $1 | sed -e s/\.s$/.sc68/`
16 as68 $1 || exit 1
17 debug68 <<EOF
18 ldat $binfile
19 r= ymamoto
21 sd $sc68file
23 EOF
24 if [ $? -eq 0 ]; then
25 rm $binfile
26 else
27 exit $?