2006-10-05 10:17:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2002 Khalid Aziz <khalid_aziz at hp.com>
|
|
|
|
# Copyright (C) 2002 Randy Dunlap <rddunlap at osdl.org>
|
|
|
|
# Copyright (C) 2002 Al Stone <ahs3 at fc.hp.com>
|
|
|
|
# Copyright (C) 2002 Hewlett-Packard Company
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
#
|
|
|
|
# Busybox version by Matteo Croce <3297627799 at wind.it>
|
|
|
|
#
|
2007-02-04 02:38:21 +00:00
|
|
|
# Rules to generate bbconfigopts.h from .config:
|
2006-10-05 10:17:08 +00:00
|
|
|
# - Retain lines that begin with "CONFIG_"
|
|
|
|
# - Retain lines that begin with "# CONFIG_"
|
|
|
|
# - lines that use double-quotes must \\-escape-quote them
|
|
|
|
|
2007-02-04 02:38:21 +00:00
|
|
|
config="$1"
|
2006-10-05 10:17:08 +00:00
|
|
|
if [ $# -lt 1 ]
|
|
|
|
then
|
|
|
|
config=.config
|
|
|
|
fi
|
|
|
|
|
2007-02-04 02:38:21 +00:00
|
|
|
echo "\
|
|
|
|
#ifndef _BBCONFIGOPTS_H
|
|
|
|
#define _BBCONFIGOPTS_H
|
|
|
|
/*
|
2006-10-05 10:17:08 +00:00
|
|
|
* busybox configuration settings.
|
|
|
|
*
|
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
|
|
|
*
|
2007-02-03 12:50:41 +00:00
|
|
|
* This file is generated automatically by scripts/mkconfigs.
|
2006-10-05 10:17:08 +00:00
|
|
|
* Do not edit.
|
2007-02-04 02:38:21 +00:00
|
|
|
*/
|
2010-06-07 12:14:26 +00:00
|
|
|
static const char bbconfig_config[] ="
|
2007-02-04 02:38:21 +00:00
|
|
|
|
|
|
|
sed 's/\"/\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{print "\"" $0 "\\n\"";}'
|
2006-10-05 10:17:08 +00:00
|
|
|
|
|
|
|
echo ";"
|
|
|
|
echo "#endif /* _BBCONFIGOPTS_H */"
|