mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
config
contrib
adddepend
array
btree_gist
chkpass
cube
dbase
dblink
dbmirror
dbsize
earthdistance
findoidjoins
fulltextindex
fuzzystrmatch
intagg
intarray
ipc_check
isbn_issn
lo
ltree
mSQL-interface
mac
miscutil
mysql
noupdate
oid2name
oracle
pg_autovacuum
pg_dumplo
pg_trgm
pg_upgrade
pgbench
pgcrypto
pgstattuple
reindexdb
rtree_gist
seg
spi
start-scripts
string
tablefunc
tips
tools
add-emacs-variables
find-sources
make-tags
tsearch
tsearch2
userlock
vacuumlo
xml
xml2
Makefile
README
contrib-global.mk
doc
src
COPYRIGHT
GNUmakefile.in
Makefile
README
README.CVS
aclocal.m4
configure
configure.in
I have updated my contrib code for version 6.5. In the attachment you will find the directories array, datetime, miscutil, string, tools and userlocks which replace the corresponding directories under contrib. In contrib/tools you will find some developement scripts which I use while hacking the sources. I hope they will be useful for some other people. I have also added a contrib/Makefile which tries to compile and install all the contribs. Unfortunately many of them don't have a Makefile or don't compile cleanly. -- Massimo Dal Zotto
29 lines
566 B
Bash
Executable File
29 lines
566 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Add local variables to C sources files to set emacs C style to 4-space tabs.
|
|
#
|
|
# Usage: cd $PG_HOME && add-emacs-variables `find . -name \*.[chy] -print`
|
|
|
|
for f in $*; do
|
|
if [ -L $f ] || grep -q '^ \* Local Variables:' $f; then
|
|
continue
|
|
fi
|
|
echo $f
|
|
touch -r $f /tmp/.add-local-variables.$$
|
|
cat <<- ' EOF' >> $f
|
|
|
|
/*
|
|
* Local Variables:
|
|
* tab-width: 4
|
|
* c-indent-level: 4
|
|
* c-basic-offset: 4
|
|
* End:
|
|
*/
|
|
EOF
|
|
touch -r /tmp/.add-local-variables.$$ $f
|
|
done
|
|
|
|
rm -f /tmp/.add-local-variables.$$
|
|
|
|
# end of file
|