lw-build-system/scripts/build.lib.c++/instantiate
Laurence Withers 0e9f48ff2d Big copyright update
Uses new-style copyright notices and improves consistency a bit. Removes the
old KATE_MODELINE stuff.
2010-11-25 15:32:52 +00:00

25 lines
641 B
Bash

if [ $# -ne 1 ]
then
print_failure "Wrong number of arguments after module; need HEADER_NAME."
echo "HEADER_NAME is the name of the header file."
exit 1
fi
HEADER_NAME=$1
shift
if [ "$(echo ${NAME} | cut -b1-3)" != "lib" ]
then
echo "Warning: your module name does not begin with 'lib'. You will"
echo "have to fix up your -config file manually, etc."
NAMEMINUSL="@TODO@"
else
NAMEMINUSL="$(echo ${NAME} | sed -e 's,^lib,,')"
fi
do_parameter_subst NAMEMINUSL HEADER_NAME
add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
# vim: syntax=sh:expandtab:ts=4:sw=4