VolksForth/tools/gensourcefiles.sh

35 lines
884 B
Bash
Raw Normal View History

2017-04-23 22:25:49 +00:00
#!/bin/sh
d=$(dirname $0)
mkdir -p $d/../sources/msdos
for i in $d/../msdos/*.{fb,vid,sys}; do
b=$(basename $i)
/bin/echo -n "write $d/../sources/msdos/$b.src ..."
2020-06-20 16:57:46 +00:00
$d/dumpblock.sh "$i" > $d/../sources/msdos/$b.src
echo " Done."
done
mkdir -p $d/../sources/cpm
for i in $d/../cpm/*.FB; do
b=$(basename $i)
/bin/echo -n "write $d/../sources/cpm/$b.src ..."
$d/dumpblock.sh "$i" > $d/../sources/cpm/$b.src
echo " Done."
done
mkdir -p $d/../sources/AtariST
for i in $d/../AtariST/*.FB; do
b=$(basename $i)
/bin/echo -n "write $d/../sources/AtariST/$b.src ..."
$d/dumpblock.sh "$i" > $d/../sources/AtariST/$b.src
echo " Done."
done
mkdir -p $d/../sources/AtariST/GEM
for i in $d/../AtariST/GEM/*.FB; do
b=$(basename $i)
/bin/echo -n "write $d/../sources/AtariST/GEM/$b.src ..."
$d/dumpblock.sh "$i" > $d/../sources/AtariST/GEM/$b.src
2017-04-23 22:25:49 +00:00
echo " Done."
done