From 6c966fc4008014912124b62c0a9466acb765c4ea Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Fri, 30 Mar 2018 00:44:08 +0200 Subject: [PATCH] Update build script to allow simple change of IWD target filename. --- build_iwd.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build_iwd.sh b/build_iwd.sh index 4f5c98b..57e5e66 100755 --- a/build_iwd.sh +++ b/build_iwd.sh @@ -1,4 +1,7 @@ #!/bin/bash -e + +iwd_target_filename="z_svr_hns.iwd" + if [ -z "${WORKSPACE}" ]; then export WORKSPACE="$(pwd)" fi @@ -26,7 +29,7 @@ modversion_txt_file="maps/mp/mods/_modversion.gsc" echo "getModVersionString(){return \"$(git describe --tags --always --dirty)\";}" > "$modversion_txt_file" echo "$modversion_txt_file" >> "$iwd_filelist" -rm -f "hns.iwd" -7z a -tzip -mx9 "hns.iwd" @"$iwd_filelist" +rm -f "${iwd_target_filename}" +7z a -tzip -mx9 "${iwd_target_filename}" @"$iwd_filelist" rm -f "$iwd_filelist" "$modversion_txt_file"