mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-03 02:08:05 +11:00
18 lines
385 B
Bash
Executable File
18 lines
385 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# wrapper around ./emul/zasm/zasm that prepares includes CFS prior to call
|
|
DIR=$(dirname $(readlink -f "$0"))
|
|
ZASMBIN="${DIR}/emul/zasm/zasm"
|
|
CFSPACK="${DIR}/cfspack/cfspack"
|
|
INCCFS=$(mktemp)
|
|
|
|
for p in "$@"; do
|
|
"${CFSPACK}" "${p}" "*.h" >> "${INCCFS}"
|
|
"${CFSPACK}" "${p}" "*.asm" >> "${INCCFS}"
|
|
done
|
|
|
|
"${ZASMBIN}" "${INCCFS}"
|
|
RES=$?
|
|
rm "${INCCFS}"
|
|
exit $RES
|