Add a "none/files" module. This is used to install static files.
This commit is contained in:
parent
5686153939
commit
4863ca9c8b
|
@ -0,0 +1 @@
|
|||
source src/@NAME@/build.install-files
|
|
@ -0,0 +1,16 @@
|
|||
[ -z "${FILESDIR}" ] && FILESDIR="${PREFIX}/share/@P@/@NAME@" # @TODO@
|
||||
|
||||
# create destination directories
|
||||
echo "Installing files into ${FILESDIR}"
|
||||
build_dir_tree "${FILESDIR}" || return 1
|
||||
|
||||
# copy across the Doxygen-generated documentation
|
||||
for file in src/@NAME@/*
|
||||
do
|
||||
[ "$(echo $(basename ${file})) | cut -b6)" == "build." ] && continue
|
||||
do_cmd cp -a ${file} ${FILESDIR} || return 1
|
||||
done
|
||||
|
||||
print_success "Files installed"
|
||||
# kate: @KATE_MODELINE@
|
||||
# vim: @VIM_MODELINE@
|
|
@ -0,0 +1,11 @@
|
|||
if [ $# -ne 0 ]
|
||||
then
|
||||
print_failure "Too many arguments. None required for this module."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
do_parameter_subst
|
||||
true
|
||||
|
||||
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
||||
# vim: expandtab:ts=4:sw=4
|
|
@ -5,6 +5,7 @@ build.c.app
|
|||
build.c.lib
|
||||
build.c.tests
|
||||
build.doxygen.docs
|
||||
build.none.files
|
||||
build.sdcc.firmware
|
||||
module-create.sh
|
||||
release.sh
|
||||
|
|
Loading…
Reference in New Issue