www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre12/scripts/cconfig.mk.makefile
Nico Schottelius 423ba10303 import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-16 12:53:45 +02:00

20 lines
407 B
Makefile

#!/bin/sh
# Nico Schottelius
# 2007-05-20, 0110 CEST
# cconfig: create makefile from conf/ directory
# currently: all files
# later: only built-defines
#
CONFS=$($(dirname $0)/cinit.get-confdir)/../conf/*
echo "#"
echo "# Warning: Autogenerated by $0, do not edit. "
echo "#"
for conf in ${CONFS}; do
NAME="$(basename $conf | tr a-z A-Z)"
value=$(head -n 1 $conf)
echo "${NAME}=${value}"
done