#! /bin/bash export TEST_PHASE="perform" export test_path export tmp_dir="`echo ${gl_abs_srcdir}| sed -e 's,/scripts,,'`/tmp" test "$tmp_dir/*" != "/*" && rm -rf "$tmp_dir"/* echo "Gen called ($test_file)" export bin_dir="${test_path}/bin" export data_dir="${test_path}/data" export input_dir="${test_path}/input/`echo $test_file|sed -e s@.*/@@`" export output_dir="${test_path}/output/`echo $test_file|sed -e s@.*/@@`" test -d "$output_dir" || mkdir "$output_dir" if test "x$build_library_tree" \!= "x"; then output_dir="$output_dir/`echo $build_library_tree|sed 's,.*/,,'`"; test -d "$output_dir" || mkdir "$output_dir" fi if test "x$build_src_tree" \!= "x"; then output_dir="$output_dir/`echo $build_src_tree|sed 's,.*/,,'`"; test -d "$output_dir" || mkdir "$output_dir" fi export build_library_tree export build_src_tree export link_output test -f $gen_file && $gen_file $input_dir $output_dir $@ status=$? if test "x$status" != "x0"; then exit 1 fi exit 0