[Assorted-commits] SF.net SVN: assorted: [457] hash-join/trunk/tools
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-16 21:38:55
|
Revision: 457 http://assorted.svn.sourceforge.net/assorted/?rev=457&view=rev Author: yangzhang Date: 2008-02-16 13:38:54 -0800 (Sat, 16 Feb 2008) Log Message: ----------- moved scala tools to simple-build Added Paths: ----------- hash-join/trunk/tools/build hash-join/trunk/tools/run.bash Removed Paths: ------------- hash-join/trunk/tools/Makefile Deleted: hash-join/trunk/tools/Makefile =================================================================== --- hash-join/trunk/tools/Makefile 2008-02-16 21:37:39 UTC (rev 456) +++ hash-join/trunk/tools/Makefile 2008-02-16 21:38:54 UTC (rev 457) @@ -1,37 +0,0 @@ -COMMONS_SRCS := $(wildcard commons/*.scala) -DBPREP_SRCS := DbPrep.scala $(COMMONS_SRCS) -LOGPROC_SRCS := LogProc.scala $(COMMONS_SRCS) -TITLES_SRCS := Titles.scala $(COMMONS_SRCS) -log := log-josmp -rep := 1 - -FSC = mkdir -p out && fsc -deprecation -d out $^ - -all: out/DbPrep.class out/LogProc.class - -out/DbPrep.class: $(DBPREP_SRCS) - $(FSC) - -out/LogProc.class: $(LOGPROC_SRCS) - $(FSC) - -out/Titles.class: $(TITLES_SRCS) - $(FSC) - -prep: out/DbPrep.class - scala -cp out DbPrep $(rep) - -proc: out/LogProc.class - mkdir -p data - egrep 'cpus|time: ' $(log) | \ - sed 's/ time: /: /' | \ - scala -cp out LogProc " cpus" - -titles: out/Titles.class - cat ../src/movies.dat | tr '\0' '\n' | scala -cp out Titles > titles.txt - # head -c 1024 movies.dat | tr '\0' '\n' | scala -cp out Titles > titles.txt - -clean: - rm -rf out - -.PHONY: clean run prep proc Added: hash-join/trunk/tools/build =================================================================== --- hash-join/trunk/tools/build (rev 0) +++ hash-join/trunk/tools/build 2008-02-16 21:38:54 UTC (rev 457) @@ -0,0 +1,11 @@ +prep: + mainclass: DbPrep + srcs: [DbPrep.scala] + +proc: + mainclass: LogProc + srcs: [LogProc.scala] + +titles: + mainclass: Titles + srcs: [Titles.scala] Added: hash-join/trunk/tools/run.bash =================================================================== --- hash-join/trunk/tools/run.bash (rev 0) +++ hash-join/trunk/tools/run.bash 2008-02-16 21:38:54 UTC (rev 457) @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset + +make -s + +prep() { + out/prep "${@:-10}" +} + +proc() { + mkdir -p data + + egrep 'cpus|time: ' $1 | + sed 's/ time: /: /' | + out/proc ' cpus' +} + +titles() { + cat ../src/movies.dat | + tr '\0' '\n' | + out/titles > titles.txt +} + +"$@" Property changes on: hash-join/trunk/tools/run.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |