File: makesetup-bashism.diff

package info (click to toggle)
python2.6 2.6.6-8%2Bdeb6u3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 65,368 kB
  • ctags: 106,965
  • sloc: ansic: 389,033; python: 375,783; asm: 9,734; sh: 4,934; makefile: 4,120; lisp: 2,933; objc: 775; xml: 62
file content (15 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# DP: Fix bashism in makesetup shell script

Index: python2.6-2.6.5+20100521/Modules/makesetup
===================================================================
--- python2.6-2.6.5+20100521.orig/Modules/makesetup	2010-05-21 16:02:19.563709916 +0200
+++ python2.6-2.6.5+20100521/Modules/makesetup	2010-05-21 16:02:19.567710355 +0200
@@ -281,7 +281,7 @@
 	-)	;;
 	*)	sedf="@sed.in.$$"
 		trap 'rm -f $sedf' 0 1 2 3
-		echo "1i\\" >$sedf
+		printf "1i\\" >$sedf
 		str="# Generated automatically from $makepre by makesetup."
 		echo "$str" >>$sedf
 		echo "s%_MODOBJS_%$OBJS%" >>$sedf