From f63a72a44d6f38f7138dadcf8f4baaf00e7d09f0 Mon Sep 17 00:00:00 2001 From: ikits Date: Tue, 6 Jan 2004 21:58:02 +0000 Subject: [PATCH] replaced sed with perl git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@190 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/bin/fix_OML_sync_control.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/auto/bin/fix_OML_sync_control.sh b/auto/bin/fix_OML_sync_control.sh index da70bee..f83a0fe 100755 --- a/auto/bin/fix_OML_sync_control.sh +++ b/auto/bin/fix_OML_sync_control.sh @@ -6,7 +6,7 @@ # General Public License Version 2 as published by the Free Software # Foundation or, at your option, any later version. -sed -e 's/#ifndef GLX_OML_sync_control/#if !defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include /' $1 > tmp -mv tmp $1 -sed -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include /' $1 > tmp -mv tmp $1 +perl -e 's/#ifndef GLX_OML_sync_control/#if !defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include /;' -pi.bak $1 +rm -f $1.bak +perl -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include /;' -pi.bak $1 +rm -f $1.bak