replaced sed with perl

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@190 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-01-06 21:58:02 +00:00
parent db6e8598a3
commit f63a72a44d
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
# General Public License Version 2 as published by the Free Software # General Public License Version 2 as published by the Free Software
# Foundation or, at your option, any later version. # 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 <inttypes.h>/' $1 > tmp perl -e 's/#ifndef GLX_OML_sync_control/#if !defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/;' -pi.bak $1
mv tmp $1 rm -f $1.bak
sed -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/' $1 > tmp perl -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/;' -pi.bak $1
mv tmp $1 rm -f $1.bak