From 6d72f5e0c3eb705b3c6479a22377c0b4b7f498d0 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Mon, 19 Dec 2011 15:59:34 +0100 Subject: [PATCH 1/1] Support template filenames in grml-live. --- grml-live | 8 ++++++++ 1 file changed, 8 insertions(+) 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")" -- 2.1.4