mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
config
contrib
array
btree_gist
chkpass
cube
dbase
dblink
dbsize
earthdistance
findoidjoins
fulltextindex
fuzzystrmatch
intagg
intarray
ipc_check
isbn_issn
lo
mSQL-interface
mac
miscutil
mysql
noupdate
oid2name
oracle
pg_controldata
pg_dumplo
pg_logger
pg_resetxlog
pg_upgrade
pgbench
pgcrypto
pgstattuple
retep
rserv
rtree_gist
seg
spi
start-scripts
string
tips
tools
add-emacs-variables
find-sources
make-tags
tsearch
userlock
vacuumlo
xml
Makefile
README
contrib-global.mk
doc
src
COPYRIGHT
GNUmakefile.in
HISTORY
INSTALL
Makefile
README
aclocal.m4
configure
configure.in
register.txt
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
|