Skip to content

Commit

Permalink
introduced set -v
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Nov 14, 2012
1 parent dc6f395 commit d99d938
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
9 changes: 3 additions & 6 deletions moa/data/templates/map.jinja2
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
### run

cat <<EndOfScriptEndOfScriptEndOfScriptEndOfScript
{{ process }}
EndOfScriptEndOfScriptEndOfScriptEndOfScript
{% if not dummy %}
set -v

{{ process }}
{% endif %}

### unittest noexpand

moa map -t test -f --np
for x in `seq -w 1 20`; do
for x in `seq -w 1 20`; do
touch test.${x}.in
done
moa set process='cp {{input}} {{output}}'
Expand Down
6 changes: 0 additions & 6 deletions moa/data/templates/map.moa
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,8 @@ name: map
parameters:
process:
category: ''
default: true
help: The command to execute
optional: false
type: string
prevent_expansion: true
dummy:
default: false
help: do a dummy run
type: boolean
optional: true
title: Execute a "map" ad-hoc analysis
4 changes: 2 additions & 2 deletions moa/data/templates/reduce.jinja2
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
### run

echo '{{ process }}'
set -v
{{ process }}

### unittest noexpand

moa map -t test -f --np
for x in `seq -w 1 20`; do
for x in `seq -w 1 20`; do
touch test.${x}.in
done
moa set process='cp {{input}} {{output}}'
Expand Down
2 changes: 1 addition & 1 deletion moa/data/templates/reduce.moa
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ name: reduce
parameters:
process:
category: ''
default: true
default: 'echo "input: {{ input|join(" ")}}"; echo "output: {{ output }}"'
help: The command to execute
optional: false
type: string
Expand Down
2 changes: 1 addition & 1 deletion moa/data/templates/simple.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### run

echo '{{ process }}'
set -v
{{ process }}


Expand Down
1 change: 0 additions & 1 deletion moa/data/templates/simple.moa
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ parameter_category_order:
parameters:
process:
category: ''
default: 'echo "Need to specify a process"'
help: The command to execute
optional: false
type: string
Expand Down

0 comments on commit d99d938

Please sign in to comment.