Evaluate variables in helpheader (#292) And move it to the end of the help message.
diff --git a/makeself-header.sh b/makeself-header.sh index 7462cf5..879f37e 100755 --- a/makeself-header.sh +++ b/makeself-header.sh
@@ -23,7 +23,7 @@ scriptargs="$SCRIPTARGS" cleanup_script="${CLEANUP_SCRIPT}" licensetxt="$LICENSE" -helpheader='$HELPHEADER' +helpheader="${HELPHEADER}" targetdir="$archdirname" filesizes="$filesizes" totalsize="$totalsize" @@ -157,7 +157,7 @@ MS_Help() { cat << EOH >&2 -\${helpheader}Makeself version $MS_VERSION +Makeself version $MS_VERSION 1) Getting help or info about \$0 : \$0 --help Print this message \$0 --info Print embedded info : title, default target directory, embedded script ... @@ -190,7 +190,7 @@ on the current terminal. --cleanup-args args Arguments to the cleanup script. Wrap in quotes to provide multiple arguments. - -- Following arguments will be passed to the embedded script + -- Following arguments will be passed to the embedded script\${helpheader} EOH }