View | Details | Raw Unified | Return to bug 119688
Collapse All | Expand All

(-)/kirby/shared/ports/mingw32-binutils/files/patch-ld-genscripts.sh (+41 lines)
Line 0 Link Here
1
--- ld/genscripts.sh.orig	Sun Aug 12 15:00:07 2007
2
+++ ld/genscripts.sh	Tue Jan 15 11:04:56 2008
3
@@ -390,30 +390,14 @@
4
     *" ${EMULATION_NAME} "*) COMPILE_IN=true;;
5
 esac
6
 
7
-if test -n "${BASH+set}"; then
8
-  source_em()
9
-  {
10
-    local current_script="$em_script"
11
-    em_script=$1
12
-    . $em_script
13
-    em_script=$current_script
14
-  }
15
-  fragment()
16
-  {
17
-    local lineno=$[${BASH_LINENO[0]} + 1]
18
-    echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
19
-    cat >> e${EMULATION_NAME}.c
20
-  }
21
-else
22
-  source_em()
23
-  {
24
-    . $1
25
-  }
26
-  fragment()
27
-  {
28
-    cat >> e${EMULATION_NAME}.c
29
-  }
30
-fi
31
+source_em()
32
+{
33
+  . $1
34
+}
35
+fragment()
36
+{
37
+  cat >> e${EMULATION_NAME}.c
38
+}
39
 
40
 # Generate e${EMULATION_NAME}.c.
41
 # Start with an empty file, then the sourced .em script

Return to bug 119688