diff options
author | Michael Neves | 2013-03-19 17:22:20 +0100 |
---|---|---|
committer | Michael Neves | 2013-03-19 17:22:20 +0100 |
commit | 42ea7dbe1defff420a50045350d9b99b44257f92 (patch) | |
tree | b390a9c80572bf6b5f625b65f92f97442f0ec446 /helper/fileutil.inc | |
parent | deleted files (diff) | |
parent | renamed targets stage3.* to stage3* (diff) | |
download | tm-scripts-42ea7dbe1defff420a50045350d9b99b44257f92.tar.gz tm-scripts-42ea7dbe1defff420a50045350d9b99b44257f92.tar.xz tm-scripts-42ea7dbe1defff420a50045350d9b99b44257f92.zip |
merge
Diffstat (limited to 'helper/fileutil.inc')
-rwxr-xr-x | helper/fileutil.inc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index eb7e3da2..ea8b7899 100755 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -45,7 +45,7 @@ list_packet_files() { #FILES=$(echo "$FILES" | sed 's/^\(.*\):###:[0-9]*$/\1/g') local LPRET=$(echo "$FILES" | awk -F ':###:' '{printf $2}') FILES=$(echo "$FILES" | awk -F ':###:' '{print $1}') - [ "x$LPRET" != "x0" ] && pwarning "list_packet_files exited with code '$LPRET' for packet ${PACKAGE}." + [ "x$LPRET" != "x0" ] && pwarning "dpkg/rpm exited with code '$LPRET' for packet ${PACKAGE}." [ -z "$FILES" ] && pwarning "list_packet_files empty for packet ${PACKAGE}." for FILE in $FILES; do [ ! -d "$FILE" ] && echo "$FILE" @@ -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: |