1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-23 22:38:06 +11:00
collapseos/tools/zasm.sh

18 lines
385 B
Bash
Raw Normal View History

2019-07-12 11:21:54 +10:00
#!/bin/sh
# 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"))
ZASMBIN="${DIR}/emul/zasm/zasm"
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}"
done
"${ZASMBIN}" "${INCCFS}"
RES=$?
rm "${INCCFS}"
exit $RES