mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
Prevent CVS from mangling script
This commit is contained in:
parent
3f850cbdc5
commit
2ac64dba44
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# Author: Andrew Dunstan
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \
|
|||||||
{ while read file ; do
|
{ while read file ; do
|
||||||
head -n 1 < $file | grep -q '^/\*' && echo $file
|
head -n 1 < $file | grep -q '^/\*' && echo $file
|
||||||
done ; echo dummy ;} | \
|
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)
|
# 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' \) \
|
-o -name 'regression.h' -o -name 'sql3types.h' -o -name 'sqlca.h' \) \
|
||||||
-prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; \
|
-prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; \
|
||||||
-o -print \) ; echo dummy ;} | \
|
-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
|
rm -f dummy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user