Add linux script to generate z_svr_hns.iwd package.
z_svr_hns.iwd will contain all necessary files to run the game mode and is an attempt to replace mod.ff with a complete version of the game that should get sent over by the server when running with an IW4M-based mod.master
parent
183b72892d
commit
4beb573d97
|
@ -2,3 +2,4 @@ demos/
|
||||||
*.log
|
*.log
|
||||||
*.log.???
|
*.log.???
|
||||||
missingasset.csv
|
missingasset.csv
|
||||||
|
*.iwd
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
if [ -z "${WORKSPACE}"]; then
|
||||||
|
export WORKSPACE="$(pwd)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
iwd_files()
|
||||||
|
{
|
||||||
|
find "${WORKSPACE}/" -type f \
|
||||||
|
! -path "*.git*" \
|
||||||
|
! -name "README*" \
|
||||||
|
! -name "mod.ff" \
|
||||||
|
! -name "mod.csv" \
|
||||||
|
! -name "missingasset.csv" \
|
||||||
|
! -name "*.md" \
|
||||||
|
! -name "*.log*" \
|
||||||
|
! -path "*/demos/**" \
|
||||||
|
! -name "*.sh" \
|
||||||
|
! -name "*.iwd" |\
|
||||||
|
sed "s:${WORKSPACE}/::g"
|
||||||
|
}
|
||||||
|
|
||||||
|
gen_iwd_filelist()
|
||||||
|
{
|
||||||
|
iwd_filelist="$(mktemp)"
|
||||||
|
iwd_files > "$iwd_filelist"
|
||||||
|
echo $iwd_filelist
|
||||||
|
}
|
||||||
|
|
||||||
|
iwd_filelist="$(gen_iwd_filelist)"
|
||||||
|
rm -f "z_svr_hns.iwd"
|
||||||
|
7z a -tzip -mx9 "z_svr_hns.iwd" @"$iwd_filelist"
|
||||||
|
rm -f "$iwd_filelist"
|
Loading…
Reference in New Issue