Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (($# != 2)); then
- echo "Usage $0 round faction"
- exit
- fi
- round=$1
- faction=$2
- reportname=${round}-$faction.zip
- testname=${round}_test-$faction
- origname=${round}_orig-$faction
- if [ ! -d $faction ]; then
- echo "$faction should be a link to your regular report directory"
- exit
- fi
- if [ ! -f $reportname ]; then
- echo "test report $reportname not found"
- fi
- if [ ! -f $faction/$reportname ]; then
- echo "original report report $faction/$reportname not found"
- fi
- set -x
- unzip -o $reportname
- mv $round-$faction.cr $testname.cr
- mv $round-$faction.nr $testname.nr
- unzip -o $faction/$reportname
- mv $round-$faction.cr $origname.cr
- mv $round-$faction.nr $origname.nr
- sed -i~ "s/^MESSAGE [0-9]*/MESSAGE 000/" $testname.cr
- sed -i~ "s/^MESSAGE [0-9]*/MESSAGE 000/" $origname.cr
- meld $origname.cr $testname.cr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement