aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 562c89519b9baa1027e27f41bd3b76185f5da112
parent 2c4bc429eaee715549ccaa797617320d81dc2043
Author: xplshn <anto@xplshn.com.ar>
Date:   Wed, 17 Jun 2026 00:15:29 -0300

Makefile.sh: handle yacc without -o

Signed-off-by: xplshn <anto@xplshn.com.ar>

Diffstat:
MMakefile.sh | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/Makefile.sh b/Makefile.sh @@ -270,6 +270,13 @@ build_awk() { if command -v yacc >/dev/null 2>&1; then printf ' YACC %s/awkgram.tab.c\n' "$dir" yacc -d -o "$dir/awkgram.tab.c" "$dir/awkgram.y" + if [ ! -f "$dir/awkgram.tab.h" ]; then + if [ -f y.tab.h ]; then + mv y.tab.h "$dir/awkgram.tab.h" + elif [ -f "$dir/y.tab.h" ]; then + mv "$dir/y.tab.h" "$dir/awkgram.tab.h" + fi + fi elif command -v bison >/dev/null 2>&1; then printf ' BISON %s/awkgram.tab.c\n' "$dir" bison -d -o "$dir/awkgram.tab.c" "$dir/awkgram.y"