2007-10-26 08:33:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
source_em()
|
|
|
|
{
|
|
|
|
local current_script="$em_script"
|
|
|
|
em_script=$1
|
|
|
|
. $em_script
|
|
|
|
em_script=$current_script
|
|
|
|
}
|
|
|
|
fragment()
|
|
|
|
{
|
2008-01-11 10:11:18 +01:00
|
|
|
if [ ${BASH_VERSINFO[3]} -ge 3 ]; then
|
|
|
|
local lineno=$[${BASH_LINENO[0]} + 1]
|
|
|
|
echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
|
|
|
|
fi
|
2007-10-26 08:33:59 +02:00
|
|
|
cat >> e${EMULATION_NAME}.c
|
|
|
|
}
|