[edit web page: add use ruleV Yoshikuni Jujo **20081130024842] { adddir ./web_page/samples/use_ruleV addfile ./web_page/samples/use_ruleV/Hakefile hunk ./web_page/samples/use_ruleV/Hakefile 1 +import Development.Hake +import Development.Hake.FunSetRaw + +target = "my_graph.png" + +main = hake [ + + dflt [ target ] + , + ruleV ".png" [ ".plt", ".dat" ] [ "common.dat" ] $ + \_ (s:_) -> [ [ "gnuplot", s ] ] + , + task "clean" [ [ "rm", "-f", target ] ] + + ] addfile ./web_page/samples/use_ruleV/common.dat hunk ./web_page/samples/use_ruleV/common.dat 1 +#x y +10 3 +20 9 +50 7 addfile ./web_page/samples/use_ruleV/my_graph.dat hunk ./web_page/samples/use_ruleV/my_graph.dat 1 +#x y +10 8 +20 15 +30 18 +50 9 addfile ./web_page/samples/use_ruleV/my_graph.plt hunk ./web_page/samples/use_ruleV/my_graph.plt 1 +set terminal png +set output "my_graph.png" +plot "my_graph.dat" using 1:2 with lp, "common.dat" using 1:2 with lp hunk ./web_page/short_tutorial.xhtml.ehs 31 +

6. use ruleV sample

+

6.1. ruleV function

+

6.2. try

hunk ./web_page/short_tutorial/Hakefile 3 -import Text.RegexPR (matchRegexPR) +import Text.RegexPR (getbrsRegexPR) hunk ./web_page/short_tutorial/Hakefile 17 +useRuleVXhtml = "use_ruleV.xhtml" hunk ./web_page/short_tutorial/Hakefile 25 +useRuleVXhtmlMoreFile = [ "Hakefile_use_ruleV" ] hunk ./web_page/short_tutorial/Hakefile 34 + , useRuleVXhtml hunk ./web_page/short_tutorial/Hakefile 44 + ++ useRuleVXhtmlMoreFile hunk ./web_page/short_tutorial/Hakefile 53 + , (useRuleVXhtml , useRuleVXhtmlMoreFile ++ [ "Variables.hs" ] ) hunk ./web_page/short_tutorial/Hakefile 138 -getV k = fromJust . lookup 1 . snd . fromJust . matchRegexPR (k ++ "\\s*:\\s*(.+)") +getV k = -- fromJust . lookup 1 . snd . fromJust . matchRegexPR (k ++ "\\s*:\\s*(.+)") + (!!1) . getbrsRegexPR (k ++ "\\s*:\\s*(.+)") hunk ./web_page/short_tutorial/Hakefile 142 -getFirstBrReg reg = fromJust . lookup 1 . snd . fromJust . matchRegexPR reg +getFirstBrReg reg = -- fromJust . lookup 1 . snd . fromJust . matchRegexPR reg + (!!1) . getbrsRegexPR reg hunk ./web_page/short_tutorial/use_ruleSS.xhtml.ehs 9 -

This page is under construction.

+

You can use ruleSS for change command by source of source.

addfile ./web_page/short_tutorial/use_ruleV.xhtml.ehs hunk ./web_page/short_tutorial/use_ruleV.xhtml.ehs 1 + +<%% import Variables %%> +<%% import System.Time (getClockTime) %%> +> +use ruleV + + +

6. use ruleV

+

updated at <%==$ getClockTime %>

+ +

6.1. ruleV function

+
> ls
+Hakefile common.dat my_graph.dat my_graph.plt
+<%== catHakefile "use_ruleV" %> + +

6.2. try

+
> hake
+gnuplot my_graph.plt
+ + + }