2019-11-20 07:59:02 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-11-20 18:36:29 -08:00
|
|
|
X=
|
|
|
|
if [ "$1""L" != "L" ] ; then
|
|
|
|
X=_$1
|
|
|
|
fi
|
|
|
|
|
2019-11-20 07:59:02 -08:00
|
|
|
OUTDIR=./m32out
|
|
|
|
|
|
|
|
rm -rf $OUTDIR
|
|
|
|
mkdir -p $OUTDIR
|
|
|
|
|
|
|
|
SRC=`ls ./testdata | grep -E '^([0-9]+)(.*)\.[Ss]'`
|
|
|
|
|
|
|
|
#SRC=`ls ./testdata | grep -E '^([0-9]+)(.*)\.[Ss]' | grep -i 2007`
|
|
|
|
|
|
|
|
for S in $SRC ; do
|
|
|
|
|
2023-02-05 10:49:07 -08:00
|
|
|
echo "merlin32 $S"
|
2019-11-20 07:59:02 -08:00
|
|
|
S1=$S
|
|
|
|
S1=${S1/.S/}
|
|
|
|
S1=${S1/.s/}
|
|
|
|
|
|
|
|
cd ./testdata
|
2019-11-20 18:36:29 -08:00
|
|
|
merlin32$X . $S 2>/dev/null >/dev/null
|
2019-11-20 10:20:43 -08:00
|
|
|
#merlin32 . $S 2>/dev/null
|
2019-11-20 07:59:02 -08:00
|
|
|
|
|
|
|
R=?$
|
2019-12-03 12:04:18 -07:00
|
|
|
cd .. >/dev/null
|
|
|
|
mv ./testdata/$S1 $OUTDIR/$S1.bin 2>/dev/null
|
2019-11-20 07:59:02 -08:00
|
|
|
rm -f ./testdata/*.txt 2>/dev/null
|
|
|
|
R=?$
|
|
|
|
|
|
|
|
done
|
|
|
|
ls $OUTDIR
|
|
|
|
|
|
|
|
|
|
|
|
|