Browse Source

ut99server: Fixed map-compressor

pull/8/merge
Daniel Gibbs 12 years ago
parent
commit
3e26f55e29
  1. 13
      UnrealTournament99/ut99server

13
UnrealTournament99/ut99server

@ -287,7 +287,7 @@ pwd
echo "" echo ""
echo "Compressed maps saved to:" echo "Compressed maps saved to:"
echo "" echo ""
echo "$compressedmapsdir" echo "${compressedmapsdir}"
echo "" echo ""
while true; do while true; do
read -p "Start compression [y/N]" yn read -p "Start compression [y/N]" yn
@ -297,11 +297,14 @@ while true; do
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
mkdir $compressedmapsdir mkdir ${compressedmapsdir}
rm -rfv ${filesdir}/Maps/*.uz2 rm -rfv ${filesdir}/Maps/*.unr.uz
cd ${systemdir} cd ${systemdir}
./ucc-bin compress ../Maps/* --nohomedir for f in ../Maps/*
mv -fv ${filesdir}/Maps/*.uz2 $compressedmapsdir do
./ucc-bin compress $f --nohomedir
done
mv -fv ${filesdir}/Maps/*.unr.uz ${compressedmapsdir}
} }
fn_details(){ fn_details(){

Loading…
Cancel
Save