commit: 6b6c36f666e0ac60772872fd49111c823dce2af0
parent 4b9b18a9346e0658c7989f24d19d2da93014a236
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 1 Sep 2024 09:28:27 +0200
bootstrap: add echo(1) and test(1) in the list
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/bootstrap-regen.sh b/bootstrap-regen.sh
@@ -7,8 +7,8 @@
# Can be checked with:
# $ strace -o configure.strace -f -e execve ./configure
# $ grep -F -e 'execve(' configure.strace | cut -f2 -d '"' | xargs -n1 basename | sort -u
-#commands="cat grep printf rm sed tr"
-commands="cat printf rm tr"
+#commands="cat echo grep printf rm sed test tr"
+commands="cat echo printf rm test tr"
targets="$(printf 'cmd/%s ' $commands)"
make clean
@@ -27,6 +27,6 @@ set -ex
make -n CC='$$CC' CFLAGS='$$CFLAGS' LDFLAGS='$$LDFLAGS' LDSTATIC='$$LDSTATIC' YACC='$$YACC' $targets | grep -vF .c.gcov
printf "
-./cmd/printf '\\nDone, you should now be able to run PATH=cmd/:\$PATH ./configure\\n'
+./cmd/printf '\\nDone, you should now be able to run PATH=cmd/:\$PATH ./configure && make clean && make\\n'
"
)> bootstrap.sh
diff --git a/bootstrap.sh b/bootstrap.sh
@@ -9,10 +9,12 @@
set -ex
$CC -std=c99 $CFLAGS -o cmd/cat cmd/cat.c $LDFLAGS $LDSTATIC
+$CC -std=c99 $CFLAGS -o cmd/echo cmd/echo.c $LDFLAGS $LDSTATIC
$CC -std=c99 $CFLAGS -o cmd/printf cmd/printf.c $LDFLAGS $LDSTATIC
$CC -std=c99 $CFLAGS -o cmd/rm cmd/rm.c lib/consent.c $LDFLAGS $LDSTATIC
+$CC -std=c99 $CFLAGS -o cmd/test cmd/test.c $LDFLAGS $LDSTATIC
$CC -std=c99 $CFLAGS -o cmd/tr cmd/tr.c lib/tr_str.c $LDFLAGS $LDSTATIC
-printf '
-Done, you should now be able to run PATH=cmd/:$PATH ./configure
+./cmd/printf '
+Done, you should now be able to run PATH=cmd/:$PATH ./configure && make clean && make
'