|
|
@@ -1,13 +1,14 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
# wrapper around ./emul/zasm/zasm that prepares includes CFS prior to call |
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
|
|
|
DIR=$(dirname $(readlink -f "$0")) |
|
|
|
ZASMBIN="${DIR}/emul/zasm/zasm" |
|
|
|
CFSPACK="${DIR}/cfspack/cfspack" |
|
|
|
INCCFS=$(mktemp) |
|
|
|
|
|
|
|
for p in "$@"; do |
|
|
|
"${CFSPACK}" "${p}" "*.+(asm|h)" >> "${INCCFS}" |
|
|
|
"${CFSPACK}" "${p}" "*.h" >> "${INCCFS}" |
|
|
|
"${CFSPACK}" "${p}" "*.asm" >> "${INCCFS}" |
|
|
|
done |
|
|
|
|
|
|
|
"${ZASMBIN}" "${INCCFS}" |
|
|
|