e9patch
e9patch copied to clipboard
e9compile fixes
fix #75 etc
remove the include path examples/
users should set their own include paths
e9compile foo.c -I bar/
Thanks for interest in cleaning this up. But I think some of the changes are not compatible with older versions of bash, e.g.:
$ ./e9compile.sh print.c
./e9compile.sh: 65: ./e9compile.sh: Syntax error: "(" unexpected
It works fine in newer versions. Generally I'd prefer it works on even very old versions, if there is no pressing reason to use newer features.
true, this breaks in posix shells
$ ash e9compile.sh asdf.c
e9compile.sh: line 65: syntax error: unexpected "("
CFLAGS=(
$ mrsh e9compile.sh asdf.c
e9compile.sh:20:10: syntax error: invalid parameter name
RED=$'\033[31m'
$ yash e9compile.sh asdf.c
e9compile.sh:54: syntax error: invalid character `@' in parameter expansion
e9compile.sh:54: syntax error: `esac' is missing
echo "${RED}error${OFF}: file ${1@Q} must have a .c/.cpp/.s extension" >&2
the only thing that would work is removing the -I examples/ arguments