Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
380B

  1. #!/bin/bash
  2. # wrapper around ./emul/zasm/zasm that prepares includes CFS prior to call
  3. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  4. ZASMBIN="${DIR}/emul/zasm/zasm"
  5. CFSPACK="${DIR}/cfspack/cfspack"
  6. INCCFS=$(mktemp)
  7. for p in "$@"; do
  8. "${CFSPACK}" "${p}" "*.+(asm|h)" >> "${INCCFS}"
  9. done
  10. "${ZASMBIN}" "${INCCFS}"
  11. RES=$?
  12. rm "${INCCFS}"
  13. exit $RES