changeset 33:0ee62f088791 misc

Include other people's submissions.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 18 Apr 2009 06:24:02 +0000
parents 944cdfec9938
children 6be1a542ade0
files materials/mkalloyinfo.sh
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/materials/mkalloyinfo.sh	Fri Apr 17 23:55:41 2009 +0000
+++ b/materials/mkalloyinfo.sh	Sat Apr 18 06:24:02 2009 +0000
@@ -3,9 +3,12 @@
 ALLOYPHP="$DESTDIR/alloys.inc.php"
 ALLOYTXT="$DESTDIR/alloys.txt"
 
+echo "Fetching alloy submissions ..."
+scp "ccr@low.fi:public_html/bat/mat/data-*.log" .
+
 echo "Generating alloy data ..."
-cat ggr_alloys.txt > tmp
-tail -25000 ~/tiny.log | grep -A1 -B2 "^You mix .* and create a quantity of " >> tmp
+cat ggr_alloys.txt data-*.log > tmp
+tail -45000 ~/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"