www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre15/scripts/cconfig.mk.makefile
Nico Schottelius 440caeb555 add cinit-0.3pre15
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-23 08:01:33 +02:00

20 lines
407 B
Makefile
Executable file

#!/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