Update build script to allow simple change of IWD target filename.
parent
d68734c458
commit
6c966fc400
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue