mirror of
https://github.com/datajerk/c2d.git
synced 2025-04-04 21:30:11 +00:00
added text2page tool
This commit is contained in:
parent
22b6cd1b18
commit
7dc164f5c8
2
Makefile
2
Makefile
@ -26,6 +26,6 @@ clean:
|
||||
rm -f bin/* *.dsk c2d.h c2d.h.1
|
||||
(cd asm; make clean)
|
||||
|
||||
test: gameserverclient bin/c2d bin/c2d.exe
|
||||
test: gameserverclient bin/c2d bin/c2d.exe bin/text2page bin/text2page.exe
|
||||
./test.sh
|
||||
|
||||
|
10
test.sh
10
test.sh
@ -9,6 +9,8 @@ SUM=898ebb103fdda6fffe62394c1b915d1d
|
||||
rm -f ${BIN}.dsk
|
||||
echo
|
||||
echo "Testing OS/X c2d..."
|
||||
echo
|
||||
echo "bin/c2d ${BIN},${ADDR} ${BIN}.dsk"
|
||||
bin/c2d ${BIN},${ADDR} ${BIN}.dsk 2>&1 | sed 's/^/ /'
|
||||
CHECK=$(md5sum ${BIN}.dsk | awk '{print $1}')
|
||||
if [ "$CHECK" = "$SUM" ]
|
||||
@ -22,7 +24,9 @@ fi
|
||||
rm -f ${BIN}.dsk
|
||||
echo
|
||||
echo "Testing Windows c2d..."
|
||||
echo
|
||||
PATH=$HOME/wine/bin:$PATH
|
||||
echo "wine bin/c2d.exe ${BIN},${ADDR} ${BIN}.dsk"
|
||||
wine bin/c2d.exe ${BIN},${ADDR} ${BIN}.dsk 2>&1 | sed 's/^/ /'
|
||||
CHECK=$(md5sum ${BIN}.dsk | awk '{print $1}')
|
||||
if [ "$CHECK" = "$SUM" ]
|
||||
@ -38,7 +42,10 @@ SUM=d12ba3c2db1cd3de352f182e0530940d
|
||||
rm -f ${BIN}.dsk
|
||||
echo
|
||||
echo "Testing OS/X c2d textpage..."
|
||||
echo
|
||||
echo "bin/text2page <${BIN}.text >${BIN}.textpage"
|
||||
bin/text2page <${BIN}.text >${BIN}.textpage
|
||||
echo "bin/c2d -t ${BIN}.textpage ${BIN},${ADDR} ${BIN}.dsk"
|
||||
bin/c2d -t ${BIN}.textpage ${BIN},${ADDR} ${BIN}.dsk 2>&1 | sed 's/^/ /'
|
||||
CHECK=$(md5sum ${BIN}.dsk | awk '{print $1}')
|
||||
if [ "$CHECK" = "$SUM" ]
|
||||
@ -52,8 +59,11 @@ fi
|
||||
rm -f ${BIN}.dsk
|
||||
echo
|
||||
echo "Testing Windows c2d textpage..."
|
||||
echo
|
||||
PATH=$HOME/wine/bin:$PATH
|
||||
echo "wine bin/text2page.exe <${BIN}.text >${BIN}.textpage"
|
||||
wine bin/text2page.exe <${BIN}.text >${BIN}.textpage
|
||||
echo "wine bin/c2d.exe -t ${BIN}.textpage ${BIN},${ADDR} ${BIN}.dsk"
|
||||
wine bin/c2d.exe -t ${BIN}.textpage ${BIN},${ADDR} ${BIN}.dsk 2>&1 | sed 's/^/ /'
|
||||
CHECK=$(md5sum ${BIN}.dsk | awk '{print $1}')
|
||||
if [ "$CHECK" = "$SUM" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user