2006-07-25 19:59:37 +01:00
|
|
|
if [ $# -ne 1 ]
|
2006-07-25 19:00:04 +01:00
|
|
|
then
|
2006-07-25 19:59:37 +01:00
|
|
|
print_failure "Wrong number of arguments after module; need HEADER_NAME."
|
2006-07-25 19:00:04 +01:00
|
|
|
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 pkgconfig file manually, etc."
|
|
|
|
NAMEMINUSL="@TODO@"
|
|
|
|
else
|
|
|
|
NAMEMINUSL="-l$(echo ${NAME} | sed -e 's,^lib,,')"
|
|
|
|
fi
|
|
|
|
|
2006-07-25 19:49:22 +01:00
|
|
|
do_parameter_subst NAMEMINUSL HEADER_NAME
|
|
|
|
true
|
2006-07-25 19:00:04 +01:00
|
|
|
|
|
|
|
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
|
|
|
# vim: expandtab:ts=4:sw=4
|