diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2010-08-04 16:49:47 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2010-08-04 16:49:47 +0200 |
commit | 62b0a3821fd3f9e860bc3306b43e447e427089ac (patch) | |
tree | 4b78b5d23555aa20eff2052f7a4e649e7e1475ca /Tools/MathematicaMisc | |
parent | 3d6cc02c4fc79e7969adeeeaf3a2a044462e440c (diff) |
kranc: Update the Kranc/Bin/kranc script and move some functionality into a new RunKranc.m file
The kranc script now looks for a Kranc installation relative to the path of the kranc script. It also has a "-v" option now to increase verbosity. Exceptions should be printed nicely.
Diffstat (limited to 'Tools/MathematicaMisc')
-rw-r--r-- | Tools/MathematicaMisc/RunKranc.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Tools/MathematicaMisc/RunKranc.m b/Tools/MathematicaMisc/RunKranc.m new file mode 100644 index 0000000..abdb282 --- /dev/null +++ b/Tools/MathematicaMisc/RunKranc.m @@ -0,0 +1,17 @@ + +script = $CommandLine[[-1]]; +krancDir = Environment["KRANCDIR"]; + +$Path = Join[$Path, + {krancDir <> "/Tools/CodeGen", + krancDir <> "/Tools/MathematicaMisc", + krancDir <> "/Tools/External"}]; +Needs["Errors`"]; +Needs["KrancThorn`"]; +If[Environment["KRANCVERBOSE"] == "yes", + SetDebugLevel[InfoFull]]; + +exception = Catch[Get[script], KrancError]; +PrintError[exception]; + +Quit[]; |