mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 15:29:11 +01:00
46e1ce6913
Change-Id: I06fc1c19229e26c20132c255c92b7e71ea3cc31a Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4372 Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
17 lines
319 B
Bash
17 lines
319 B
Bash
#!/bin/bash
|
|
source_em()
|
|
{
|
|
local current_script="$em_script"
|
|
em_script=$1
|
|
source_sh $1
|
|
em_script=$current_script
|
|
}
|
|
fragment()
|
|
{
|
|
if [ ${BASH_VERSINFO[3]} -ge 3 ]; then
|
|
local lineno=$[${BASH_LINENO[0]} + 1]
|
|
echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
|
|
fi
|
|
cat >> e${EMULATION_NAME}.c
|
|
}
|