Prevent CVS from mangling script

This commit is contained in:
Andrew Dunstan 2008-06-15 21:58:55 +00:00
parent 3f850cbdc5
commit 2ac64dba44
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# $PostgreSQL: pgsql/src/tools/add_cvs_markers,v 1.1 2008/06/15 21:46:02 adunstan Exp $
# $PostgreSQL: pgsql/src/tools/add_cvs_markers,v 1.2 2008/06/15 21:58:55 adunstan Exp $
# Author: Andrew Dunstan
@ -36,7 +36,7 @@ find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \
{ while read file ; do
head -n 1 < $file | grep -q '^/\*' && echo $file
done ; echo dummy ;} | \
xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL: pgsql/src/tools/add_cvs_markers,v 1.1 2008/06/15 21:46:02 adunstan Exp $ \n *'
xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * \x24PostgreSQL:$ \n *'
# now all the rest (i.e. the files that don't start with a comment)
@ -44,7 +44,7 @@ find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \
-o -name 'regression.h' -o -name 'sql3types.h' -o -name 'sqlca.h' \) \
-prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; \
-o -print \) ; echo dummy ;} | \
xargs -l sed -i -e '1i/*\n * $PostgreSQL: pgsql/src/tools/add_cvs_markers,v 1.1 2008/06/15 21:46:02 adunstan Exp $ \n */'
xargs -l sed -i -e '1i/*\n * \x24PostgreSQL:$ \n */'
rm -f dummy