From da0084106fbd7a11fb0156bc673947a4f482b2d2 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 19 Mar 2013 15:02:52 +0100 Subject: copy_static_files function now called on each module --- helper/fileutil.inc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'helper') diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 4855e326..f7654719 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -63,7 +63,16 @@ install_dependencies() { zypper install -y $REQUIRED_DEPENDENCIES || perror "Could not zypper install $REQUIRED_DEPENDENCIES" fi } +# +# copies static data files from /data/ to +# +copy_static_data() { + [ ! -d "${MODULE_DIR}/data" ] && pinfo "${MODULE} has no static 'data' directory." && return + cp -r ${MODULE_DIR}/data/* ${TARGET_BUILD_DIR} || perror "Could not copy static data of ${MODULE}" +} + +###################################################################################################################### # # generate initramfs of directory # usage: -- cgit v1.2.3-55-g7522