git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f2888d
)
Prevent cvs from expanding the $Header search pattern ;-)
author
Zdeněk Šustr
<sustr4@cesnet.cz>
Fri, 12 Feb 2010 10:32:05 +0000
(10:32 +0000)
committer
Zdeněk Šustr
<sustr4@cesnet.cz>
Fri, 12 Feb 2010 10:32:05 +0000
(10:32 +0000)
org.glite.lb/egee_license_check.sh
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb/egee_license_check.sh
b/org.glite.lb/egee_license_check.sh
index
9380da1
..
f0bebc1
100644
(file)
--- a/
org.glite.lb/egee_license_check.sh
+++ b/
org.glite.lb/egee_license_check.sh
@@
-88,7
+88,7
@@
function fix_c_style_sources()
srcfile=$1
let TOTALFOUND=$TOTALFOUND+1
-lineno=`grep -n
"\$Header
$srcfile | sed 's/:.*$//'`
+lineno=`grep -n
-E "\$H[e]ader: /cvs"
$srcfile | sed 's/:.*$//'`
if [ "$lineno" == "" ]; then
lineno=0
fi
@@
-116,7
+116,7
@@
srcfile=$1
prefix=$2
let TOTALFOUND=$TOTALFOUND+1
-lineno=`grep -n
"\$Header
$srcfile | sed 's/:.*$//'`
+lineno=`grep -n
-E "\$H[e]ader: /cvs"
$srcfile | sed 's/:.*$//'`
shlineno=`head -n 1 $srcfile | grep -n '^#! */' | sed 's/:.*$//'`
if [ "$lineno" == "" ]; then
lineno=0