forked from trueagi-io/metta-wam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mettalog.metta.tmp
328 lines (328 loc) · 16.9 KB
/
mettalog.metta.tmp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
( mettalog '' 'add_to_list "--stdin=tty" STDIO_OPTIONS' )
( mettalog '' 'add_to_list "--stdin=tty" STDIO_OPTIONS' )
( mettalog '' '' 'do_DEBUG "$@"' )
( mettalog '' '' 'do_DEBUG "$@"' )
( mettalog '' ' elif [ "$verbose" -gt 1 ]; then' )
( mettalog '' ' elif [ "$verbose" -gt 1 ]; then' )
( mettalog '' '' 'do_DEBUG "$@"' )
( mettalog '' '' 'do_DEBUG "$@"' )
( mettalog 'do_DEBUG "$@"' )
( mettalog 'do_DEBUG "$@"' )
( mettalog '' 'return $?' )
( mettalog '' 'return $?' )
( mettalog '' '#|| { DEBUG "${RED}Error executing command:${NC} $*"; return 1; }' )
( mettalog '' '#|| { DEBUG "${RED}Error executing command:${NC} $*"; return 1; }' )
( mettalog '' 'exec $METTALOG_DIR/scripts/send_keys_debug.sh $(quote_args_if_needed $@)' )
( mettalog '' 'exec $METTALOG_DIR/scripts/send_keys_debug.sh $(quote_args_if_needed $@)' )
( mettalog '' '' return )
( mettalog '' '' return )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' ' # Check if the option is already in $@' )
( mettalog '' ' # Check if the option is already in $@' )
( mettalog '' ' local skip=0' )
( mettalog '' ' local skip=0' )
( mettalog '' ' for arg in "$@"; do' )
( mettalog '' ' for arg in "$@"; do' )
( mettalog '' '' 'if [[ "$arg" == "$line" ]]; then' )
( mettalog '' '' 'if [[ "$arg" == "$line" ]]; then' )
( mettalog '' '' ' skip=1' )
( mettalog '' '' ' skip=1' )
( mettalog '' '' ' break' )
( mettalog '' '' ' break' )
( mettalog '' '' fi )
( mettalog '' '' fi )
( mettalog '' ' done' )
( mettalog '' ' done' )
( mettalog '' ' if [[ "$skip" -eq 1 ]]; then' )
( mettalog '' ' if [[ "$skip" -eq 1 ]]; then' )
( mettalog '' '' '[[ "$verbose" == "1" ]] && DEBUG "Skipping option already in \$@: $line"' )
( mettalog '' '' '[[ "$verbose" == "1" ]] && DEBUG "Skipping option already in \$@: $line"' )
( mettalog '' '' continue )
( mettalog '' '' continue )
( mettalog '' ' fi' )
( mettalog '' ' fi' )
( mettalog '' 'list_ref=("$item" "${list_ref[@]}")' )
( mettalog '' 'list_ref=("$item" "${list_ref[@]}")' )
( mettalog '' '' '' ' Dump link info in sh(1) format (and exit)' )
( mettalog '' '' '' ' Dump link info in sh(1) format (and exit)' )
( mettalog '' '' '' ' If no metta files are provided, this is the default behavior.' )
( mettalog '' '' '' ' If no metta files are provided, this is the default behavior.' )
( mettalog '' '' '' ' directory as the input file or directory.' )
( mettalog '' '' '' ' directory as the input file or directory.' )
( mettalog '' '' '' ' Defaults to true if exactly one metta file or directory argument was provided' )
( mettalog '' '' '' ' Defaults to true if exactly one metta file or directory argument was provided' )
( mettalog '' ' $METTA_CMD' )
( mettalog '' ' $METTA_CMD' )
( mettalog '' 'if [ -d "$METTALOG_DIR/src/$FIRST_LINE/" ]; then' )
( mettalog '' 'if [ -d "$METTALOG_DIR/src/$FIRST_LINE/" ]; then' )
( mettalog '' ' PYSWIP_VERSION="$FIRST_LINE"' )
( mettalog '' ' PYSWIP_VERSION="$FIRST_LINE"' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' ' NEXT_ARG_IS_RC_FILE=false' )
( mettalog '' ' NEXT_ARG_IS_RC_FILE=false' )
( mettalog '' ' use_rc_file=""' )
( mettalog '' ' use_rc_file=""' )
( mettalog '' 'arg_realpath="$arg"' )
( mettalog '' 'arg_realpath="$arg"' )
( mettalog '' 'if [ "$SWI_FLAG_WITH_ARG" = true ]; then' )
( mettalog '' 'if [ "$SWI_FLAG_WITH_ARG" = true ]; then' )
( mettalog '' ' add_to_list "$arg_realpath" SWI_OPTIONS' )
( mettalog '' ' add_to_list "$arg_realpath" SWI_OPTIONS' )
( mettalog '' ' SWI_FLAG_WITH_ARG=false # Reset the flag' )
( mettalog '' ' SWI_FLAG_WITH_ARG=false # Reset the flag' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' 'case "$arg" in' )
( mettalog '' 'case "$arg" in' )
( mettalog '' ' --stack-limit=*|--stack_limit=*|--table-space=*|--shared-table-space=*|--pce=*|--pldoc=*|--tty=*|--packs=*|--signals=*|--sigalert=*|--threads=*|--debug=*|--debug-on-interrupt=*|--quiet=*|--traditional|--home=*|--on-error=*|--on-warning=*)' )
( mettalog '' ' --stack-limit=*|--stack_limit=*|--table-space=*|--shared-table-space=*|--pce=*|--pldoc=*|--tty=*|--packs=*|--signals=*|--sigalert=*|--threads=*|--debug=*|--debug-on-interrupt=*|--quiet=*|--traditional|--home=*|--on-error=*|--on-warning=*)' )
( mettalog '' '' 'add_to_list "$arg" SWI_OPTIONS' )
( mettalog '' '' 'add_to_list "$arg" SWI_OPTIONS' )
( mettalog '' '' #continue )
( mettalog '' '' #continue )
( mettalog '' '' ;; )
( mettalog '' '' ;; )
( mettalog '' ' -D*=*|-O)' )
( mettalog '' ' -D*=*|-O)' )
( mettalog '' '' 'add_to_list "$arg" SWI_OPTIONS' )
( mettalog '' '' 'add_to_list "$arg" SWI_OPTIONS' )
( mettalog '' '' continue )
( mettalog '' '' continue )
( mettalog '' '' ;; )
( mettalog '' '' ;; )
( mettalog '' ' -x|-g|-t|-f|-F|-l|-s|-p|-D) # For options that require an argument in the next round' )
( mettalog '' ' -x|-g|-t|-f|-F|-l|-s|-p|-D) # For options that require an argument in the next round' )
( mettalog '' '' 'add_to_list "$arg" SWI_OPTIONS' )
( mettalog '' '' 'add_to_list "$arg" SWI_OPTIONS' )
( mettalog '' '' SWI_FLAG_WITH_ARG=true )
( mettalog '' '' SWI_FLAG_WITH_ARG=true )
( mettalog '' '' continue )
( mettalog '' '' continue )
( mettalog '' '' ;; )
( mettalog '' '' ;; )
( mettalog '' esac )
( mettalog '' esac )
( mettalog '' ' METTALOG_OPTIONS+=("$arg")' )
( mettalog '' ' METTALOG_OPTIONS+=("$arg")' )
( mettalog '' 'if [[ "$arg" == "--compatio" ]]; then' )
( mettalog '' 'if [[ "$arg" == "--compatio" ]]; then' )
( mettalog '' ' #debug_this_script=false' )
( mettalog '' ' #debug_this_script=false' )
( mettalog '' ' compatio=true ' )
( mettalog '' ' compatio=true ' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' 'if [[ "$arg" == "--debug" ]]; then' )
( mettalog '' 'if [[ "$arg" == "--debug" ]]; then' )
( mettalog '' ' debug_this_script=true' )
( mettalog '' ' debug_this_script=true' )
( mettalog '' ' compatio=false' )
( mettalog '' ' compatio=false' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' 'if [[ "$arg" == "--docker=false" ]]; then' )
( mettalog '' 'if [[ "$arg" == "--docker=false" ]]; then' )
( mettalog '' ' use_docker=false' )
( mettalog '' ' use_docker=false' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' 'if [[ "$arg" == "--docker=true" ]]; then' )
( mettalog '' 'if [[ "$arg" == "--docker=true" ]]; then' )
( mettalog '' ' use_docker=true' )
( mettalog '' ' use_docker=true' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' 'if [[ "$arg" == "--docker" ]]; then' )
( mettalog '' 'if [[ "$arg" == "--docker" ]]; then' )
( mettalog '' ' use_docker=true' )
( mettalog '' ' use_docker=true' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' '# Check if the argument is a directory' )
( mettalog '' '# Check if the argument is a directory' )
( mettalog '' 'if [ -d "$arg" ]; then' )
( mettalog '' 'if [ -d "$arg" ]; then' )
( mettalog '' ' use_test_script=1' )
( mettalog '' ' use_test_script=1' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' ' use_test_script=0' )
( mettalog '' ' use_test_script=0' )
( mettalog '' ' #do_DEBUG "TIMEOUT=$TIMEOUT PARSED=$parsed"' )
( mettalog '' ' #do_DEBUG "TIMEOUT=$TIMEOUT PARSED=$parsed"' )
( mettalog '' ' TIMEOUT=$parsed' )
( mettalog '' ' TIMEOUT=$parsed' )
( mettalog '' ' export TIMEOUT' )
( mettalog '' ' export TIMEOUT' )
( mettalog '' ' #METTALOG_OPTIONS=("--timeout=$TIMEOUT" "${METTALOG_OPTIONS[@]}")' )
( mettalog '' ' #METTALOG_OPTIONS=("--timeout=$TIMEOUT" "${METTALOG_OPTIONS[@]}")' )
( mettalog '' ' #add_to_list "$arg" METTALOG_OPTIONS' )
( mettalog '' ' #add_to_list "$arg" METTALOG_OPTIONS' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' 'elif [[ "$arg" =~ ^--python=(enable|disable|false)$ ]]; then' )
( mettalog '' 'elif [[ "$arg" =~ ^--python=(enable|disable|false)$ ]]; then' )
( mettalog '' continue )
( mettalog '' continue )
( mettalog '' continue )
( mettalog '' continue )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' continue' )
( mettalog '' ' add_to_list "$arg" METTALOG_OPTIONS' )
( mettalog '' ' add_to_list "$arg" METTALOG_OPTIONS' )
( mettalog '' '[[ "$METTA_FLAG_WITH_ARG" == true ]] && { METTALOG_OPTIONS+=("\"$arg\""); METTA_FLAG_WITH_ARG=false; continue; }' )
( mettalog '' '[[ "$METTA_FLAG_WITH_ARG" == true ]] && { METTALOG_OPTIONS+=("\"$arg\""); METTA_FLAG_WITH_ARG=false; continue; }' )
( mettalog '' ' add_to_list "$arg" METTALOG_OPTIONS' )
( mettalog '' ' add_to_list "$arg" METTALOG_OPTIONS' )
( mettalog '' '' 'if [[ "$arg" =~ ^--output=(.*)$ ]]; then' )
( mettalog '' '' 'if [[ "$arg" =~ ^--output=(.*)$ ]]; then' )
( mettalog '' '' ' OUTPUT_DIR="${BASH_REMATCH[1]}"' )
( mettalog '' '' ' OUTPUT_DIR="${BASH_REMATCH[1]}"' )
( mettalog '' '' ' export METTALOG_OUTPUT="${OUTPUT_DIR}"' )
( mettalog '' '' ' export METTALOG_OUTPUT="${OUTPUT_DIR}"' )
( mettalog '' '' fi )
( mettalog '' '' fi )
( mettalog '' ' add_to_list "$arg" PRE_METTALOG_OPTIONS' )
( mettalog '' ' add_to_list "$arg" PRE_METTALOG_OPTIONS' )
( mettalog '' ' add_to_front "--html" PRE_METTALOG_OPTIONS' )
( mettalog '' ' add_to_front "--html" PRE_METTALOG_OPTIONS' )
( mettalog '' ' add_to_front "--debug" PRE_METTALOG_OPTIONS' )
( mettalog '' ' add_to_front "--debug" PRE_METTALOG_OPTIONS' )
( mettalog '' '' compatio=false )
( mettalog '' '' compatio=false )
( mettalog '' '' html_flag=enable )
( mettalog '' '' html_flag=enable )
( mettalog '' ' if [ -f "${DefaultSav}" ]; then' )
( mettalog '' ' if [ -f "${DefaultSav}" ]; then' )
( mettalog '' '' ' rm -f "${DefaultSav}"' )
( mettalog '' '' ' rm -f "${DefaultSav}"' )
( mettalog '' '' fi )
( mettalog '' '' fi )
( mettalog '' '' never_compile=1 )
( mettalog '' '' never_compile=1 )
( mettalog '' '' 'DASH2="${arg#-}"' )
( mettalog '' '' 'DASH2="${arg#-}"' )
( mettalog '' '' 'PRE_METTALOG_OPTIONS=("$DASH2" "${PRE_METTALOG_OPTIONS[@]}")' )
( mettalog '' '' 'PRE_METTALOG_OPTIONS=("$DASH2" "${PRE_METTALOG_OPTIONS[@]}")' )
( mettalog '' '' 'if [[ -f "$arg" || -d "$arg" ]]; then' )
( mettalog '' '' 'if [[ -f "$arg" || -d "$arg" ]]; then' )
( mettalog '' '' ' arg_realpath="$(realpath "$arg")"' )
( mettalog '' '' ' arg_realpath="$(realpath "$arg")"' )
( mettalog '' '' ' if [[ -f "$arg_realpath" || -d "$arg_realpath" ]]; then' )
( mettalog '' '' ' if [[ -f "$arg_realpath" || -d "$arg_realpath" ]]; then' )
( mettalog '' '' ' add_to_list "$arg_realpath" LIST_OF_FILE_ARGS' )
( mettalog '' '' ' add_to_list "$arg_realpath" LIST_OF_FILE_ARGS' )
( mettalog '' '' ' fi' )
( mettalog '' '' ' fi' )
( mettalog '' '' fi )
( mettalog '' '' fi )
( mettalog '' 'arg_realpath="$(realpath "$arg")"' )
( mettalog '' 'arg_realpath="$(realpath "$arg")"' )
( mettalog '' 'if [[ -f "$arg_realpath" || -d "$arg_realpath" ]]; then' )
( mettalog '' 'if [[ -f "$arg_realpath" || -d "$arg_realpath" ]]; then' )
( mettalog '' ' add_to_list "$arg_realpath" LIST_OF_FILE_ARGS' )
( mettalog '' ' add_to_list "$arg_realpath" LIST_OF_FILE_ARGS' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' '#WILL_CALL=" -y --report=n $(quote_args_if_needed ${PRE_METTALOG_OPTIONS[*]}) $(quote_args_if_needed ${METTALOG_OPTIONS[*]}) $(quote_args_if_needed ${METTALOG_OPTIONS_LAST[*]})"' )
( mettalog '' '#WILL_CALL=" -y --report=n $(quote_args_if_needed ${PRE_METTALOG_OPTIONS[*]}) $(quote_args_if_needed ${METTALOG_OPTIONS[*]}) $(quote_args_if_needed ${METTALOG_OPTIONS_LAST[*]})"' )
( mettalog '' 'WILL_CALL=" -y --report=n $(quote_args_if_needed ${RC_OPTIONS[*]}) $(quote_args_if_needed $@)"' )
( mettalog '' 'WILL_CALL=" -y --report=n $(quote_args_if_needed ${RC_OPTIONS[*]}) $(quote_args_if_needed $@)"' )
( mettalog '' 'echo -e "${GREEN}test_in_metta.sh $WILL_CALL${NC}\n"' )
( mettalog '' 'echo -e "${GREEN}test_in_metta.sh $WILL_CALL${NC}\n"' )
( mettalog '' 'exec $METTALOG_DIR/scripts/test_in_metta.sh $WILL_CALL' )
( mettalog '' 'exec $METTALOG_DIR/scripts/test_in_metta.sh $WILL_CALL' )
( mettalog '' 'DEBUG "Reference file $reference_file does not exist. Compiler will be called."' )
( mettalog '' 'DEBUG "Reference file $reference_file does not exist. Compiler will be called."' )
( mettalog '' should_compile=1 )
( mettalog '' should_compile=1 )
( mettalog '' '# Iterate over each .pl file to check if it's newer' )
( mettalog '' '# Iterate over each .pl file to check if it's newer' )
( mettalog '' 'for pl_file in "$INTERP_SRC_DIR"/*_*.pl; do' )
( mettalog '' 'for pl_file in "$INTERP_SRC_DIR"/*_*.pl; do' )
( mettalog '' ' if [[ ! -e "$pl_file" ]]; then' )
( mettalog '' ' if [[ ! -e "$pl_file" ]]; then' )
( mettalog '' '' 'DEBUG "No matching .pl files found in $INTERP_SRC_DIR."' )
( mettalog '' '' 'DEBUG "No matching .pl files found in $INTERP_SRC_DIR."' )
( mettalog '' '' '#exit 1' )
( mettalog '' '' '#exit 1' )
( mettalog '' ' fi' )
( mettalog '' ' fi' )
( mettalog '' ' # Check if this .pl file is newer than the reference file' )
( mettalog '' ' # Check if this .pl file is newer than the reference file' )
( mettalog '' ' if [[ "$pl_file" -nt "$reference_file" ]]; then' )
( mettalog '' ' if [[ "$pl_file" -nt "$reference_file" ]]; then' )
( mettalog '' '' 'DEBUG "$pl_file is newer than $reference_file."' )
( mettalog '' '' 'DEBUG "$pl_file is newer than $reference_file."' )
( mettalog '' '' should_compile=1 )
( mettalog '' '' should_compile=1 )
( mettalog '' '' 'break # No need to check further, exit loop' )
( mettalog '' '' 'break # No need to check further, exit loop' )
( mettalog '' ' fi' )
( mettalog '' ' fi' )
( mettalog '' done )
( mettalog '' done )
( mettalog # 'swipl -x $reference_file -g qsave_program -g halt' )
( mettalog # 'swipl -x $reference_file -g qsave_program -g halt' )
( mettalog '' '#DEBUG "Compiling $reference_file" ' )
( mettalog '' '#DEBUG "Compiling $reference_file" ' )
( mettalog '' '#swipl -l src/$PYSWIP_VERSION/metta_interp.pl -g qcompile_mettalog -- --exeout=$reference_file' )
( mettalog '' '#swipl -l src/$PYSWIP_VERSION/metta_interp.pl -g qcompile_mettalog -- --exeout=$reference_file' )
( mettalog '' ' export METTALOG_OUTPUT="${OUTPUT_DIR}"' )
( mettalog '' ' export METTALOG_OUTPUT="${OUTPUT_DIR}"' )
( mettalog '' 'export HTML_FILE="${HTML_OUT}"' )
( mettalog '' 'export HTML_FILE="${HTML_OUT}"' )
( mettalog '' '[[ "$wants_print_help" == "1" ]] && { print_help; }' )
( mettalog '' '[[ "$wants_print_help" == "1" ]] && { print_help; }' )
( mettalog '' 'DEBUG ""' )
( mettalog '' 'DEBUG ""' )
( mettalog '' 'DEBUG "Afterwhich ansi2html -u < $TEE_FILE > '$HTML_OUT'"' )
( mettalog '' 'DEBUG "Afterwhich ansi2html -u < $TEE_FILE > '$HTML_OUT'"' )
( mettalog '' 'DEBUG ""' )
( mettalog '' 'DEBUG ""' )
( mettalog '' '[[ -n "${EXIT_SCRIPT+x}" ]] && { [[ "$IS_SOURCED" == "1" ]] && return "$EXIT_SCRIPT" || exit "$EXIT_SCRIPT"; }' )
( mettalog '' '[[ -n "${EXIT_SCRIPT+x}" ]] && { [[ "$IS_SOURCED" == "1" ]] && return "$EXIT_SCRIPT" || exit "$EXIT_SCRIPT"; }' )
( mettalog '' '' )
( mettalog '' '' )
( mettalog '' 'IF_REALLY_DO "touch '$TEE_FILE'"' )
( mettalog '' 'IF_REALLY_DO "touch '$TEE_FILE'"' )
( mettalog '' 'IF_REALLY_DO "chmod 777 '$TEE_FILE'"' )
( mettalog '' 'IF_REALLY_DO "chmod 777 '$TEE_FILE'"' )
( mettalog '' 'IF_REALLY_DO "cat /dev/null > '$TEE_FILE'"' )
( mettalog '' 'IF_REALLY_DO "cat /dev/null > '$TEE_FILE'"' )
( mettalog '' 'if [[ "$contains_halt" == "true" ]]; then' )
( mettalog '' 'if [[ "$contains_halt" == "true" ]]; then' )
( mettalog '' '' 'do_DEBUG "METTA_CMD: $METTA_CMD"' )
( mettalog '' '' 'do_DEBUG "METTA_CMD: $METTA_CMD"' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' execute_with_pipes )
( mettalog '' execute_with_pipes )
( mettalog '' 'echo $? > "$TEMP_EXIT_CODE_FILE"' )
( mettalog '' 'echo $? > "$TEMP_EXIT_CODE_FILE"' )
( mettalog '' '[[ "$wants_print_help" == "1" ]] && { print_help; [[ "$IS_SOURCED" == "1" ]] && return "$EXIT_SCRIPT" || exit "$EXIT_SCRIPT"; }' )
( mettalog '' '[[ "$wants_print_help" == "1" ]] && { print_help; [[ "$IS_SOURCED" == "1" ]] && return "$EXIT_SCRIPT" || exit "$EXIT_SCRIPT"; }' )
( mettalog '' '[[ -n "${EXIT_SCRIPT+x}" ]] && { [[ "$IS_SOURCED" == "1" ]] && return "$EXIT_SCRIPT" || exit "$EXIT_SCRIPT"; }' )
( mettalog '' '[[ -n "${EXIT_SCRIPT+x}" ]] && { [[ "$IS_SOURCED" == "1" ]] && return "$EXIT_SCRIPT" || exit "$EXIT_SCRIPT"; }' )
( mettalog '' ' export METTALOG_OUTPUT="${OUTPUT_DIR}"' )
( mettalog '' ' export METTALOG_OUTPUT="${OUTPUT_DIR}"' )
( mettalog '' 'if [[ "$contains_halt" == "true" ]]; then' )
( mettalog '' 'if [[ "$contains_halt" == "true" ]]; then' )
( mettalog '' '' 'do_DEBUG "METTA_CMD: $METTA_CMD"' )
( mettalog '' '' 'do_DEBUG "METTA_CMD: $METTA_CMD"' )
( mettalog '' fi )
( mettalog '' fi )
( mettalog '' execute_with_pipes )
( mettalog '' execute_with_pipes )
( mettalog '' 'IF_REALLY_DO "echo $? > '$TEMP_EXIT_CODE_FILE'"' )
( mettalog '' 'IF_REALLY_DO "echo $? > '$TEMP_EXIT_CODE_FILE'"' )