Mercurial > hg > batmud > misc
changeset 31:904ecb3eb68c misc
Script for generating and uploading alloy data.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 17 Apr 2009 23:54:09 +0000 |
parents | 7858f9d8f281 |
children | 944cdfec9938 |
files | materials/mkalloyinfo.sh |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/materials/mkalloyinfo.sh Fri Apr 17 23:54:09 2009 +0000 @@ -0,0 +1,14 @@ +#!/bin/sh +DESTDIR="." +ALLOYPHP="$DESTDIR/alloys.inc.php" +ALLOYTXT="$DESTDIR/alloys.txt" + +echo "Generating alloy data ..." +cat ggr_alloys.txt > tmp +tail -25000 ~/tiny.log | grep -A1 -B2 "^You mix .* and create a quantity of " >> tmp +perl -w parsealloys.pl -php < tmp > "$ALLOYPHP" +perl -w parsealloys.pl < tmp > "$ALLOYTXT" + +echo "Uploading ..." +#scp "$ALLOYTXT" ccr@low.fi:public_html/bat/ && +scp "$LISTPHP" "$ALLOYPHP" ccr@low.fi:public_html/bat/mat/