From 2ac64dba4427ef4c0f55d900717985ede3d361bc Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 15 Jun 2008 21:58:55 +0000 Subject: [PATCH] Prevent CVS from mangling script --- src/tools/add_cvs_markers | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/add_cvs_markers b/src/tools/add_cvs_markers index 1eb1feba13..7344735aa2 100755 --- a/src/tools/add_cvs_markers +++ b/src/tools/add_cvs_markers @@ -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