1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-20 22:38:06 +11:00
collapseos/tools/zasm.sh
Virgil Dupras 9a72f10221 zasm: includes CFS is now built on-the-fly by zasm.sh
This makes for a much more usable zasm linux binary that doesn't have to
be rebuilt every time apps or kernel change.
2019-06-02 19:57:40 -04:00

17 lines
380 B
Bash
Executable File

#!/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"
CFSPACK="${DIR}/cfspack/cfspack"
INCCFS=$(mktemp)
for p in "$@"; do
"${CFSPACK}" "${p}" "*.+(asm|h)" >> "${INCCFS}"
done
"${ZASMBIN}" "${INCCFS}"
RES=$?
rm "${INCCFS}"
exit $RES