Grow 1.1.0.1 → 1.1.0.2
raw patch · 1 files changed
+12/−12 lines, 1 files
Files
- Grow.cabal +12/−12
Grow.cabal view
@@ -16,11 +16,11 @@ For example, here is a simple Seed file to compile a single C file into an executable. .- tee $$arg:in {- all = ($main:seq "All done !"):in $execs- execs = hook ld [main] [main.o] :in $objects- objects = hook cc [main.o] [main.c]- }+ > tee $$arg:in {+ > all = ($main:seq "All done !"):in $execs+ > execs = hook ld [main] [main.o] :in $objects+ > objects = hook cc [main.o] [main.c]+ > } . Notice the `hook` function ? It is the Grow primitive that calls an external program to perform actual tasks. @@ -34,13 +34,13 @@ Here are sample `cc` and `ld` scripts to show you there is nothing magical about them : .- #!/bin/bash- obj="$1" ; shift ; src="$1"- gcc -c "$src" -o "$obj"+ > #!/bin/bash+ > obj="$1" ; shift ; src="$1"+ > gcc -c "$src" -o "$obj" .- #!/bin/bash- bin="$1" ; shift ; obj="$1"- gcc "$obj" -o "$bin"+ > #!/bin/bash+ > bin="$1" ; shift ; obj="$1"+ > gcc "$obj" -o "$bin" . In grow, instead of writing recipes in the configuration, we just declare hooks and then write the appropriate wrapper scripts to call compilers with@@ -49,7 +49,7 @@ -- meta-information author: Marc Coiffier maintainer: marc.coiffier@gmail.com-version: 1.1.0.1+version: 1.1.0.2 license: OtherLicense license-file: LICENSE