2019-07-12 11:21:54 +10:00
|
|
|
#!/bin/sh
|
2019-06-03 05:50:59 +10:00
|
|
|
|
|
|
|
# wrapper around ./emul/zasm/zasm that prepares includes CFS prior to call
|
2019-07-12 11:21:54 +10:00
|
|
|
DIR=$(dirname $(readlink -f "$0"))
|
2019-06-03 05:50:59 +10:00
|
|
|
ZASMBIN="${DIR}/emul/zasm/zasm"
|
2019-06-03 09:54:37 +10:00
|
|
|
CFSPACK="${DIR}/cfspack/cfspack"
|
|
|
|
INCCFS=$(mktemp)
|
|
|
|
|
|
|
|
for p in "$@"; do
|
2019-07-12 11:21:54 +10:00
|
|
|
"${CFSPACK}" "${p}" "*.h" >> "${INCCFS}"
|
|
|
|
"${CFSPACK}" "${p}" "*.asm" >> "${INCCFS}"
|
2019-06-03 09:54:37 +10:00
|
|
|
done
|
|
|
|
|
2019-06-03 05:50:59 +10:00
|
|
|
"${ZASMBIN}" "${INCCFS}"
|
2019-06-03 09:54:37 +10:00
|
|
|
RES=$?
|
|
|
|
rm "${INCCFS}"
|
|
|
|
exit $RES
|