Update build script to allow simple change of IWD target filename.

master
Icedream 2018-03-30 00:44:08 +02:00
parent d68734c458
commit 6c966fc400
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,7 @@
#!/bin/bash -e #!/bin/bash -e
iwd_target_filename="z_svr_hns.iwd"
if [ -z "${WORKSPACE}" ]; then if [ -z "${WORKSPACE}" ]; then
export WORKSPACE="$(pwd)" export WORKSPACE="$(pwd)"
fi 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 "getModVersionString(){return \"$(git describe --tags --always --dirty)\";}" > "$modversion_txt_file"
echo "$modversion_txt_file" >> "$iwd_filelist" echo "$modversion_txt_file" >> "$iwd_filelist"
rm -f "hns.iwd" rm -f "${iwd_target_filename}"
7z a -tzip -mx9 "hns.iwd" @"$iwd_filelist" 7z a -tzip -mx9 "${iwd_target_filename}" @"$iwd_filelist"
rm -f "$iwd_filelist" "$modversion_txt_file" rm -f "$iwd_filelist" "$modversion_txt_file"