60 lines
2 KiB
Bash
Executable file
60 lines
2 KiB
Bash
Executable file
#!/bin/bash -e
|
|
|
|
OUT=${JOEY}/sdks/iix/IIgs/out/joey
|
|
|
|
if [ -d ${OUT} ]; then
|
|
rm -rf ${OUT}
|
|
fi
|
|
mkdir -p ${OUT}
|
|
|
|
pushd ${JOEY}/joeylib/joeylib/src
|
|
iix assemble jIIgs.asm keep=31:/out/joey/jIIgsasm
|
|
iix compile jIIgs.c keep=31:/out/joey/jIIgsc
|
|
iix compile joey.c keep=31:/out/joey/joey
|
|
|
|
iix makelib 31:/out/joey/joeylib +31:/out/joey/jIIgsasm.A
|
|
iix makelib 31:/out/joey/joeylib +31:/out/joey/jIIgsasm.ROOT
|
|
iix makelib 31:/out/joey/joeylib +31:/out/joey/jIIgsc.a
|
|
iix makelib 31:/out/joey/joeylib +31:/out/joey/joey.a
|
|
|
|
iix compile test.c keep=31:/out/joey/test
|
|
iix -DKeepType=S16 link +L 31:/out/joey/test 31:/out/joey/joeylib keep=31:/out/joey/test > test.map
|
|
|
|
iix dumpobj +D 31:/out/joey/test &> test.dis || true
|
|
|
|
php ${JOEY}/sdks/iix/ntconverter.php *.mod
|
|
popd
|
|
|
|
cp -f ${JOEY}/joeylib/joeylib/lib/IIgs/Tool221#ba0000 ${JOEY}/dist/IIgs/.
|
|
cp -f ${JOEY}/joeylib/joeylib/src/joey.h ${JOEY}/dist/.
|
|
cp -f ${OUT}/joeylib ${JOEY}/dist/IIgs/joeylib#b20000
|
|
|
|
if [ ! -z $1 ]; then
|
|
CADIUS=${JOEY}/sdks/iix/cadius-git/bin/release/cadius
|
|
IMPORT=/tmp/import.po
|
|
VOL=Import
|
|
|
|
rm ${OUT}/JLSTATS 2> /dev/null || true
|
|
rm ${IMPORT} 2> /dev/null || true
|
|
|
|
cp ${OUT}/test ${OUT}/Test#B30000
|
|
cp ${JOEY}/joeylib/joeylib/src/kanga.sta ${OUT}/kanga.sta#060000
|
|
cp ${JOEY}/joeylib/joeylib/src/font.sta ${OUT}/font.sta#060000
|
|
cp ${JOEY}/joeylib/joeylib/src/music ${OUT}/music#D50000
|
|
cp ${JOEY}/joeylib/joeylib/src/music.w ${OUT}/music.w#060000
|
|
|
|
${CADIUS} createvolume ${IMPORT} ${VOL} 32MB > /dev/null
|
|
${CADIUS} createfolder ${IMPORT} ${VOL}/data > /dev/null
|
|
${CADIUS} addfile ${IMPORT} ${VOL} ${OUT}/Test#b30000 > /dev/null
|
|
${CADIUS} addfile ${IMPORT} ${VOL}/data ${OUT}/kanga.sta#060000 > /dev/null
|
|
${CADIUS} addfile ${IMPORT} ${VOL}/data ${OUT}/font.sta#060000 > /dev/null
|
|
${CADIUS} addfile ${IMPORT} ${VOL}/data ${OUT}/music#D50000 > /dev/null
|
|
${CADIUS} addfile ${IMPORT} ${VOL}/data ${OUT}/music.w#060000 > /dev/null
|
|
|
|
pushd ${JOEY}/sdks/iix/gsplus
|
|
./gsplus -config IIgsTest.cfg || true
|
|
popd
|
|
echo ""
|
|
${CADIUS} extractfile ${IMPORT} ${VOL}/JLSTATS ${OUT} > /dev/null
|
|
cat ${OUT}/JLSTATS#040000 2> /dev/null
|
|
fi
|