mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	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
 |