From: Ulrich Dangel Date: Mon, 19 Dec 2011 14:59:34 +0000 (+0100) Subject: Support template filenames in grml-live. X-Git-Tag: v0.17.1~21 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=6d72f5e0c3eb705b3c6479a22377c0b4b7f498d0;hp=896626325ecf904b16d44d7f3b896bc4b4ca6d11 Support template filenames in grml-live. --- diff --git a/grml-live b/grml-live index dbc9bbd..3bcf349 100755 --- a/grml-live +++ b/grml-live @@ -951,6 +951,14 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then fi done + for param in ARCH DATE DISTRI_INFO DISTRI_NAME DISTRI_SPLASH GRML_NAME SQUASHFS_NAME \ + RELEASE_INFO SHORT_NAME VERSION ; do + for file in $(find "${BUILD_OUTPUT}" -name "*%$param%*") ; do + value="$(eval echo '$'"$param")" + mv ${file} ${file/\%${param}\%/$value} + done + done + # adjust bootsplash accordingly but make sure the string has the according lenght SQUASHFS_NAME="$(cut_string 20 "$SQUASHFS_NAME")" SQUASHFS_NAME="$(extend_string_end 20 "$SQUASHFS_NAME")"