mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 12:02:36 +02:00
Fixed changes
This commit is contained in:
54
mk/linux/analyze-world-synch.sh
Normal file
54
mk/linux/analyze-world-synch.sh
Normal file
@@ -0,0 +1,54 @@
|
||||
#!/bin/bash
|
||||
# Use this script to analyze world synchronization log files between two or
|
||||
# more networked players
|
||||
# ----------------------------------------------------------------------------
|
||||
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
||||
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
|
||||
|
||||
MAX_SPLIT_SIZE_BYTES=75000000
|
||||
|
||||
echo 'Max split file size = '"$MAX_SPLIT_SIZE_BYTES"
|
||||
|
||||
echo 'Setting up temp folders...'
|
||||
|
||||
if [ -d temp ]; then
|
||||
echo 'Purging temp folders...'
|
||||
rm -r temp
|
||||
fi
|
||||
|
||||
if [ ! -d temp ]; then
|
||||
echo 'Creating temp folders...'
|
||||
mkdir temp
|
||||
fi
|
||||
|
||||
if [ ! -d temp ]; then
|
||||
echo 'Could not find temp folders, exiting...'
|
||||
exit
|
||||
fi
|
||||
|
||||
cd temp
|
||||
if [ ! -d temp1 ]; then
|
||||
echo 'Creating temp sub folders...'
|
||||
mkdir temp1
|
||||
fi
|
||||
|
||||
if [ -f xaa ] ; then
|
||||
rm x*
|
||||
fi
|
||||
|
||||
echo 'Copying logs to temp folders...'
|
||||
cp ../debugWorldSynch.log* .
|
||||
cp debugWorldSynch.log1 temp1/
|
||||
|
||||
echo 'Splitting logs in temp folders...'
|
||||
split -b $MAX_SPLIT_SIZE_BYTES debugWorldSynch.log
|
||||
|
||||
cd temp1
|
||||
if [ -f xaa ] ; then
|
||||
rm x*
|
||||
fi
|
||||
|
||||
split -b $MAX_SPLIT_SIZE_BYTES debugWorldSynch.log1
|
||||
cd ../
|
||||
|
||||
echo 'Please diff the files xaa (and other split files) in temp folders temp and temp1...'
|
@@ -1,3 +0,0 @@
|
||||
/lib-x86/
|
||||
/lib-x86_64/
|
||||
/megaglest-mini-update.sh
|
Reference in New Issue
Block a user