2019-06-02 15:50:59 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# wrapper around ./emul/zasm/zasm that prepares includes CFS prior to call
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
ZASMBIN="${DIR}/emul/zasm/zasm"
|
2019-06-02 19:54:37 -04:00
|
|
|
CFSPACK="${DIR}/cfspack/cfspack"
|
|
|
|
INCCFS=$(mktemp)
|
|
|
|
|
|
|
|
for p in "$@"; do
|
|
|
|
"${CFSPACK}" "${p}" "*.+(asm|h)" >> "${INCCFS}"
|
|
|
|
done
|
|
|
|
|
2019-06-02 15:50:59 -04:00
|
|
|
"${ZASMBIN}" "${INCCFS}"
|
2019-06-02 19:54:37 -04:00
|
|
|
RES=$?
|
|
|
|
rm "${INCCFS}"
|
|
|
|
exit $RES
|