mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-28 11:43:36 +08:00
c43cc9ffba
* genscripts.sh: Move bash script to.. * genscrba.sh: ..here.
15 lines
269 B
Bash
15 lines
269 B
Bash
#!/bin/bash
|
|
source_em()
|
|
{
|
|
local current_script="$em_script"
|
|
em_script=$1
|
|
. $em_script
|
|
em_script=$current_script
|
|
}
|
|
fragment()
|
|
{
|
|
local lineno=$[${BASH_LINENO[0]} + 1]
|
|
echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
|
|
cat >> e${EMULATION_NAME}.c
|
|
}
|