aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/prereq/build.sh2
-rwxr-xr-xscripts/recreate-prereq.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/prereq/build.sh b/scripts/prereq/build.sh
index 4c88dbab..0a5f8621 100755
--- a/scripts/prereq/build.sh
+++ b/scripts/prereq/build.sh
@@ -12,4 +12,4 @@ toys/posix/sed.c toys/posix/sort.c toys/posix/tail.c toys/posix/tee.c
toys/posix/uname.c toys/posix/wc.c toys/posix/xargs.c
"
-$BUILD lib/*.c $FILES $LINK -o toybox
+$BUILD lib/*.c $FILES $LINK -o toybox-prereq
diff --git a/scripts/recreate-prereq.sh b/scripts/recreate-prereq.sh
index 328290ef..4e0db113 100755
--- a/scripts/recreate-prereq.sh
+++ b/scripts/recreate-prereq.sh
@@ -24,10 +24,11 @@ cat > scripts/prereq/build.sh << 'EOF'
BUILD='cc -funsigned-char -I scripts/prereq -I . -Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing -DTOYBOX_VERSION=""'
LINK=''
EOF
+grep -A999 FILES= generated/build.sh >> scripts/prereq/build.sh
+sed -i 's/ toybox$/&-prereq/' scripts/prereq/build.sh
# harvest stripped down headers
-grep -A999 FILES= generated/build.sh >> scripts/prereq/build.sh
echo > scripts/prereq/generated/tags.h
sed 's/.*/#define HELP_& ""/' <<<"$CMDLIST" > scripts/prereq/generated/help.h
egrep "($(xargs <<<"$CMDLIST"|tr ' [:lower:]' '|[:upper:]'))" \