Add build.header.c
A new module type for creating just a header file. This is useful for e.g. shared interfaces and so on which are not backed by a library.
This commit is contained in:
parent
0e9f48ff2d
commit
7a4adc3550
8 changed files with 73 additions and 1 deletions
14
scripts/build.header.c/instantiate
Normal file
14
scripts/build.header.c/instantiate
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
|
||||
do_parameter_subst NAME HEADER_NAME
|
||||
true
|
||||
|
||||
# vim: syntax=sh:expandtab:ts=4:sw=4
|
||||
Loading…
Add table
Add a link
Reference in a new issue