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.

18 lines
385B

  1. #!/bin/sh
  2. # wrapper around ./emul/zasm/zasm that prepares includes CFS prior to call
  3. DIR=$(dirname $(readlink -f "$0"))
  4. ZASMBIN="${DIR}/emul/zasm/zasm"
  5. CFSPACK="${DIR}/cfspack/cfspack"
  6. INCCFS=$(mktemp)
  7. for p in "$@"; do
  8. "${CFSPACK}" "${p}" "*.h" >> "${INCCFS}"
  9. "${CFSPACK}" "${p}" "*.asm" >> "${INCCFS}"
  10. done
  11. "${ZASMBIN}" "${INCCFS}"
  12. RES=$?
  13. rm "${INCCFS}"
  14. exit $RES