Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/scripts/mkconfigs
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/scripts/mkconfigs
r1765 r2725 27 27 # - lines that use double-quotes must \\-escape-quote them 28 28 29 config="$1" 30 if [ $# -lt 1 ] 31 then 32 config=.config 33 fi 29 config=.config 34 30 31 { 35 32 echo "\ 36 33 #ifndef _BBCONFIGOPTS_H … … 39 36 * busybox configuration settings. 40 37 * 41 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.38 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 42 39 * 43 40 * This file is generated automatically by scripts/mkconfigs. 44 41 * Do not edit. 45 *46 42 */ 47 static const char *const bbconfig_config="43 static const char bbconfig_config[] ALIGN1 =" 48 44 49 sed 's/\"/\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{print "\"" $0 "\\n\"";}' 45 grep '^#\? \?CONFIG_' "$config" \ 46 | sed -e 's/\"/\\\"/g' -e 's/^/"/' -e 's/$/\\n"/' 50 47 51 48 echo ";" 52 echo "#endif /* _BBCONFIGOPTS_H */" 49 echo "#endif" 50 } >"$1" 51 52 { 53 echo "\ 54 #ifndef _BBCONFIGOPTS_BZ2_H 55 #define _BBCONFIGOPTS_BZ2_H 56 /* 57 * busybox configuration settings. 58 * 59 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 60 * 61 * This file is generated automatically by scripts/mkconfigs. 62 * Do not edit. 63 */ 64 static const char bbconfig_config_bz2[] ALIGN1 = {" 65 66 grep '^#\? \?CONFIG_' "$config" \ 67 | bzip2 -1 | dd bs=2 skip=1 2>/dev/null \ 68 | od -v -t x1 \ 69 | sed -e 's/^[^ ]*//' \ 70 -e 's/ //g' \ 71 -e '/^$/d' \ 72 -e 's/\(..\)/0x\1,/g' 73 74 echo "};" 75 echo "#endif" 76 } >"$2"
Note:
See TracChangeset
for help on using the changeset viewer.