From 046781273ed3fe210aa6f22807622e955c225a8a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 17 Mar 2007 02:45:59 +0000 Subject: Have Makefile.in call conf-header.sh instead of having kconfig call it via system(). Also move it to extra/scripts since it's a uClibc build script, not part of upstream kconfig. Adjust the "grabbing a new kconfig snapshot" procedure accordingly. --- extra/config/conf-header.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 extra/config/conf-header.sh (limited to 'extra/config/conf-header.sh') diff --git a/extra/config/conf-header.sh b/extra/config/conf-header.sh deleted file mode 100755 index 90dfa999a..000000000 --- a/extra/config/conf-header.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -e - -# Turn .config into a header file - -if [ -z "$1" ] ; then - echo "Usage: conf-header.sh <.config>" - exit 1 -fi - -cat < directly; use instead -#endif - -#define __UCLIBC_MAJOR__ ${MAJOR_VERSION} -#define __UCLIBC_MINOR__ ${MINOR_VERSION} -#define __UCLIBC_SUBLEVEL__ ${SUBLEVEL} -EOF - -exec \ -sed \ - -e '/^#$/d' \ - -e '/^[^#]/s:^\([^=]*\)=\(.*\):#define __\1__ \2:' \ - -e '/^#define /s: y$: 1:' \ - -e '/^# .* is not set$/s:^# \(.*\) is not set$:#undef __\1__:' \ - -e 's:^# \(.*\)$:/* \1 */:' \ - $1 -- cgit v1.2.3