From 29fb63849d4d49bc5afda2b6562faca3e4791ac4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Feb 2018 20:07:12 -0600 Subject: People keep running ./configure, so have it do a defconfig for them. --- configure | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 100644 => 100755 configure diff --git a/configure b/configure old mode 100644 new mode 100755 index a7a427f6..14c9c659 --- a/configure +++ b/configure @@ -1,7 +1,16 @@ -# Toybox configuration file. +#!/bin/bash # This sets environment variables used by scripts/make.sh +# People run ./configure out of habit, so do "defconfig" for them. + +if [ "$(basename "$0")" == configure ] +then + echo "Assuming you want 'make defconfig', but you should probably check the README." + make defconfig + exit $? +fi + # A synonym. [ -z "$CROSS_COMPILE" ] && CROSS_COMPILE="$CROSS" -- cgit v1.2.3