bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / scripts / embedded_scripts
index 86ad44d1d68d451547edc567114cc0ccbf6ad00b..aa7bf3e8a1924d7ecc85d6228bdfb1e2d0b2ec4e 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+. ./.config || exit 1
+
 target="$1"
 custom_loc="$2"
 applet_loc="$3"
@@ -8,6 +10,12 @@ test "$target" || exit 1
 test "$SED" || SED=sed
 test "$DD" || DD=dd
 
+if [ x"$CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS" != x"y" ]
+then
+       printf '#define NUM_SCRIPTS 0\n' >"$target"
+       exit 0
+fi
+
 # Some people were bitten by their system lacking a (proper) od
 od -v -b </dev/null >/dev/null
 if test $? != 0; then