summary refs log tree commit diff stats
path: root/examples/cross_calculator/nimrod_commandline
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2012-11-08 23:38:14 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2012-11-08 23:47:08 +0100
commitd98826271a12cf390f4e85bdcfbab935c14f1228 (patch)
tree0944cac85f4446dfb30e2a4c1081401780ee79bf /examples/cross_calculator/nimrod_commandline
parent6cfbfc43a48dc09997ba39c64aaffb2d9687b6b0 (diff)
downloadNim-d98826271a12cf390f4e85bdcfbab935c14f1228.tar.gz
Replaces shell scripts with nimrod configuration files.
This should make compilation more cross platform friendly.
Diffstat (limited to 'examples/cross_calculator/nimrod_commandline')
-rw-r--r--examples/cross_calculator/nimrod_commandline/nimrod.cfg4
-rw-r--r--examples/cross_calculator/nimrod_commandline/readme.txt7
2 files changed, 8 insertions, 3 deletions
diff --git a/examples/cross_calculator/nimrod_commandline/nimrod.cfg b/examples/cross_calculator/nimrod_commandline/nimrod.cfg
new file mode 100644
index 000000000..c1aedcf6a
--- /dev/null
+++ b/examples/cross_calculator/nimrod_commandline/nimrod.cfg
@@ -0,0 +1,4 @@
+# Nimrod configuration file.
+# The file is used only to add the path of the backend to the compiler options.
+
+path="../nimrod_backend"
diff --git a/examples/cross_calculator/nimrod_commandline/readme.txt b/examples/cross_calculator/nimrod_commandline/readme.txt
index 45c1a30af..5430e7b47 100644
--- a/examples/cross_calculator/nimrod_commandline/readme.txt
+++ b/examples/cross_calculator/nimrod_commandline/readme.txt
@@ -4,6 +4,7 @@ cross-calculator sample.
 The commandline interface can be used non interactively through switches, or
 interactively when running the command without parameters.
 
-Compilation is fairly easy, just include the path to the backend in your
-compilation command. A basic build.sh is provided for unix like platforms with
-the correct parameters.
+Compilation is fairly easy despite having the source split in different
+directories. Thanks to the nimrod.cfg file, which adds the ../nimrod_backend
+directory as a search path, you can compile and run the example just fine from
+the command line with 'nimrod c -r nimcalculator.nim'.