view scripts/ @ 412:2b521c791e4e

Patch shouldn't be bothered by DOS newlines.
author Rob Landley <>
date Sun, 22 Jan 2012 22:28:04 -0600
parents 4f1ca01db000
children 8b0487639db9
line wrap: on
line source


# This has to be a separate file from scripts/ so it can be called
# before menuconfig.  (It's called again from scripts/ just to be sure.)

mkdir -p generated

function genconfig()
  for i in $(echo toys/*.c | sort)
    # Grab the config block for
    echo "# $i"
    sed -n '/^\*\//q;/^config [A-Z]/,$p' $i || exit 1

genconfig > generated/