mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +00:00
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:
parent
db6e8598a3
commit
f63a72a44d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user