summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
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: