#!/bin/bash proc source_em { local current_script="$em_script" setvar em_script = "$1" source $em_script setvar em_script = "$current_script" } proc fragment { if test ${BASH_VERSINFO[3]} -ge 3 { local lineno=$[${BASH_LINENO[0]} + 1] echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script>> e${EMULATION_NAME}.c "#line $lineno \"$em_script\"" } cat >> e${EMULATION_NAME}.c }