aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-23 21:03:18 -0600
committerRob Landley <rob@landley.net>2012-02-23 21:03:18 -0600
commit1b7ad01f5e5ead83fbc06ff20248b085a15dc279 (patch)
tree296b57166f5947bfcc8105425eae5d2b97600149 /scripts
parent2f53279a8d96265f029da2062d7d754808211deb (diff)
downloadtoybox-1b7ad01f5e5ead83fbc06ff20248b085a15dc279.tar.gz
Don't mix the the probed symbols with the command symbols.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 30c7eba1..4ecff254 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -8,7 +8,7 @@ OUTFILE=generated/Config.in
source configure
-genconfig()
+probeconfig()
{
# Probe for container support on target
@@ -19,7 +19,9 @@ genconfig()
EOF
[ $? -eq 0 ] && DEFAULT=y || DEFAULT=n
echo -e "\tdefault $DEFAULT\n" || return 1
-
+}
+genconfig()
+{
# extract config stanzas from each command source file, in alphabetical order
for i in $(ls -1 toys/*.c)
@@ -31,4 +33,5 @@ EOF
done
}
-genconfig > generated/Config.in || rm "$OUTFILE"
+probeconfig > generated/Config.probed || rm generated/Config.probed
+genconfig > generated/Config.in || rm generated/Config.in