summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-19 15:02:52 +0100
committerJonathan Bauer2013-03-19 15:02:52 +0100
commitda0084106fbd7a11fb0156bc673947a4f482b2d2 (patch)
tree213a0643060fc1e3685cef2f4a211e8e973db1b6 /helper
parentfix path for --help (diff)
downloadtm-scripts-da0084106fbd7a11fb0156bc673947a4f482b2d2.tar.gz
tm-scripts-da0084106fbd7a11fb0156bc673947a4f482b2d2.tar.xz
tm-scripts-da0084106fbd7a11fb0156bc673947a4f482b2d2.zip
copy_static_files function now called on each module
Diffstat (limited to 'helper')
-rw-r--r--helper/fileutil.inc9
1 files changed, 9 insertions, 0 deletions
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 <MODULE>/data/ to <TARGET_BUILD_DIR>
+#
+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: