diff options
| author | pgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-08-01 16:04:40 +0000 |
|---|---|---|
| committer | pgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-08-01 16:04:40 +0000 |
| commit | c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4 (patch) | |
| tree | 0080e21973368e7f3b2c510d29c411b50fee0488 /scripts | |
| parent | 2d2674a554021e2e03ce29c62c38e4a9a62ede93 (diff) | |
| download | busybox-w32-c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4.tar.gz busybox-w32-c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4.tar.bz2 busybox-w32-c0b300d5e2c6bfb5484d7beb0400a280d4d77ea4.zip | |
new config display applet, from bug 46. i've changed the name
of the applet from "config" to "bbconfig", and renamed the
source filenames and symbols to match appropriately.
git-svn-id: svn://busybox.net/trunk/busybox@11006 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/config/mkconfigs | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/scripts/config/mkconfigs b/scripts/config/mkconfigs new file mode 100755 index 000000000..f09c04ccd --- /dev/null +++ b/scripts/config/mkconfigs | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # Copyright (C) 2002 Khalid Aziz <khalid_aziz at hp.com> | ||
| 4 | # Copyright (C) 2002 Randy Dunlap <rddunlap at osdl.org> | ||
| 5 | # Copyright (C) 2002 Al Stone <ahs3 at fc.hp.com> | ||
| 6 | # Copyright (C) 2002 Hewlett-Packard Company | ||
| 7 | # | ||
| 8 | # This program is free software; you can redistribute it and/or modify | ||
| 9 | # it under the terms of the GNU General Public License as published by | ||
| 10 | # the Free Software Foundation; either version 2 of the License, or | ||
| 11 | # (at your option) any later version. | ||
| 12 | # | ||
| 13 | # This program is distributed in the hope that it will be useful, | ||
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | # GNU General Public License for more details. | ||
| 17 | # | ||
| 18 | # You should have received a copy of the GNU General Public License | ||
| 19 | # along with this program; if not, write to the Free Software | ||
| 20 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 21 | # | ||
| 22 | # Busybox version by Matteo Croce <3297627799 at wind.it> | ||
| 23 | # | ||
| 24 | # Rules to generate bbconfig.h from .config: | ||
| 25 | # - Retain lines that begin with "CONFIG_" | ||
| 26 | # - Retain lines that begin with "# CONFIG_" | ||
| 27 | # - lines that use double-quotes must \\-escape-quote them | ||
| 28 | |||
| 29 | if [ $# -lt 1 ] | ||
| 30 | then | ||
| 31 | config=.config | ||
| 32 | else config=$1 | ||
| 33 | fi | ||
| 34 | |||
| 35 | echo "#ifndef _BBCONFIG_H" | ||
| 36 | echo "#define _BBCONFIG_H" | ||
| 37 | echo \ | ||
| 38 | "/* | ||
| 39 | * | ||
| 40 | * This program is free software; you can redistribute it and/or modify | ||
| 41 | * it under the terms of the GNU General Public License as published by | ||
| 42 | * the Free Software Foundation; either version 2 of the License, or (at | ||
| 43 | * your option) any later version. | ||
| 44 | * | ||
| 45 | * This program is distributed in the hope that it will be useful, but | ||
| 46 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 47 | * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
| 48 | * NON INFRINGEMENT. See the GNU General Public License for more | ||
| 49 | * details. | ||
| 50 | * | ||
| 51 | * You should have received a copy of the GNU General Public License | ||
| 52 | * along with this program; if not, write to the Free Software | ||
| 53 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 54 | * | ||
| 55 | * | ||
| 56 | * | ||
| 57 | * This file is generated automatically by scripts/config/mkconfigs. Do not edit. | ||
| 58 | * | ||
| 59 | */" | ||
| 60 | |||
| 61 | echo "static char const bbconfig_config[] = " | ||
| 62 | echo "\"CONFIG_BEGIN=n\\n\\" | ||
| 63 | echo "`cat $config | sed 's/\"/\\\\\"/g' | grep "^#\? \?CONFIG_" | awk '{ print $0 "\\\\n\\\\" }' `" | ||
| 64 | echo "CONFIG_END=n\\n\";" | ||
| 65 | echo "#endif /* _BBCONFIG_H */" | ||
