mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 00:40:56 +11:00
9a72f10221
This makes for a much more usable zasm linux binary that doesn't have to be rebuilt every time apps or kernel change.
17 lines
380 B
Bash
Executable File
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
|