From 4863ca9c8bf07c259c5bc4dc4040a6812728d726 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Sun, 30 Jul 2006 13:13:46 +0100 Subject: [PATCH] Add a "none/files" module. This is used to install static files. --- scripts/build.none.files/build.install | 1 + scripts/build.none.files/build.install-files | 16 ++++++++++++++++ scripts/build.none.files/instantiate | 11 +++++++++++ skel/scripts/.gitignore | 1 + 4 files changed, 29 insertions(+) create mode 100644 scripts/build.none.files/build.install create mode 100644 scripts/build.none.files/build.install-files create mode 100644 scripts/build.none.files/instantiate diff --git a/scripts/build.none.files/build.install b/scripts/build.none.files/build.install new file mode 100644 index 0000000..23c1bc8 --- /dev/null +++ b/scripts/build.none.files/build.install @@ -0,0 +1 @@ +source src/@NAME@/build.install-files diff --git a/scripts/build.none.files/build.install-files b/scripts/build.none.files/build.install-files new file mode 100644 index 0000000..1920946 --- /dev/null +++ b/scripts/build.none.files/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@ diff --git a/scripts/build.none.files/instantiate b/scripts/build.none.files/instantiate new file mode 100644 index 0000000..9fb90de --- /dev/null +++ b/scripts/build.none.files/instantiate @@ -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 diff --git a/skel/scripts/.gitignore b/skel/scripts/.gitignore index 61ac9ba..ce33425 100644 --- a/skel/scripts/.gitignore +++ b/skel/scripts/.gitignore @@ -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