Revision 12695
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/runscripts/util.run | ||
---|---|---|
6 | 6 |
|
7 | 7 |
if false; then #### run script template: |
8 | 8 |
#!/bin/bash -e |
9 |
auto_fwd=1 # optional |
|
9 | 10 |
. "$(dirname "${BASH_SOURCE[0]}")"/path/to/util_or_file_including_util.run "$@" |
10 | 11 |
.rel other_includes |
11 | 12 |
|
... | ... | |
83 | 84 |
for subdir in "${subdirs[@]}"; do "$top_dir"/"$subdir"/run "$@"; done |
84 | 85 |
} |
85 | 86 |
|
87 |
: "${auto_fwd=}" # usage: auto_fwd=1; . .../file_including_util.run |
|
88 |
if test "$auto_fwd"; then |
|
89 |
fallback() { echo_func; fwd "$@"; } |
|
86 | 90 |
fi |
91 |
|
|
92 |
fi |
Also available in: Unified diff
lib/runscripts/util.run: added $auto_fwd switch