1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:59:03 -08:00
rc/sh/pre
2021-07-29 00:37:35 -07:00

12 lines
273 B
Bash
Executable file

#!/usr/bin/env bash
# YES_ZSH
pre() {
if [ -n "${ZSH_VERSION:-}" ]; then
${CC:-gcc} -dM -E - $=CPPFLAGS $=CFLAGS $=LDFLAGS < /dev/null
else
${CC:-gcc} -dM -E - $CPPFLAGS $CFLAGS $LDFLAGS < /dev/null
fi
}
[ "${SOURCING:-0}" -gt 0 ] || pre "$@"