Add a "none/files" module. This is used to install static files.

This commit is contained in:
Laurence Withers 2006-07-30 13:13:46 +01:00
parent 5686153939
commit 4863ca9c8b
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
source src/@NAME@/build.install-files

View File

@ -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@

View File

@ -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

View File

@ -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