diff options
| author | Peter Eisentraut | 2010-11-23 20:27:50 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2010-11-23 20:34:55 +0000 |
| commit | fc946c39aeacdff7df60c83fca6582985e8546c8 (patch) | |
| tree | 866145f64c09c0673a4aa3d3a2f5647f0b7afc45 /src/tools | |
| parent | 44475e782f4674d257b9e5c1a3930218a4b4deea (diff) | |
Remove useless whitespace at end of lines
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/RELEASE_CHANGES | 2 | ||||
| -rw-r--r-- | src/tools/backend/README | 2 | ||||
| -rw-r--r-- | src/tools/backend/backend_dirs.html | 2 | ||||
| -rwxr-xr-x | src/tools/check_keywords.pl | 4 | ||||
| -rw-r--r-- | src/tools/editors/emacs.samples | 4 | ||||
| -rw-r--r-- | src/tools/entab/Makefile | 8 | ||||
| -rw-r--r-- | src/tools/entab/entab.man | 2 | ||||
| -rwxr-xr-x | src/tools/find_static | 8 | ||||
| -rwxr-xr-x | src/tools/find_typedef | 6 | ||||
| -rw-r--r-- | src/tools/make_diff/README | 4 | ||||
| -rw-r--r-- | src/tools/msvc/Mkvcbuild.pm | 4 | ||||
| -rw-r--r-- | src/tools/msvc/README | 8 | ||||
| -rwxr-xr-x | src/tools/pginclude/pgrminclude | 6 | ||||
| -rw-r--r-- | src/tools/pgindent/README | 6 | ||||
| -rwxr-xr-x | src/tools/pgindent/pgindent | 10 | ||||
| -rwxr-xr-x | src/tools/pgtest | 10 |
16 files changed, 43 insertions, 43 deletions
diff --git a/src/tools/RELEASE_CHANGES b/src/tools/RELEASE_CHANGES index de994b2b50..8e54793f1d 100644 --- a/src/tools/RELEASE_CHANGES +++ b/src/tools/RELEASE_CHANGES @@ -143,7 +143,7 @@ function: } If we wanted to add a third argument: - + void print_stuff(int arg1, int arg2, int arg3) { printf("stuff: %d %d %d\n", arg1, arg2, arg3); diff --git a/src/tools/backend/README b/src/tools/backend/README index d779c0e11a..2b8692d393 100644 --- a/src/tools/backend/README +++ b/src/tools/backend/README @@ -1,4 +1,4 @@ src/tools/backend/README -Just point your browser at the index.html file, and click on the +Just point your browser at the index.html file, and click on the flowchart to see the description and source code. diff --git a/src/tools/backend/backend_dirs.html b/src/tools/backend/backend_dirs.html index 9b675c3e2a..16bd894582 100644 --- a/src/tools/backend/backend_dirs.html +++ b/src/tools/backend/backend_dirs.html @@ -339,7 +339,7 @@ i.e. '~'.</p> href="../../backend/port">port</a> - compatibility routines</h2> <br /> - + <hr /> <small>Maintainer: Bruce Momjian ( <a href="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</a> diff --git a/src/tools/check_keywords.pl b/src/tools/check_keywords.pl index 24d7bf6f20..3b68638614 100755 --- a/src/tools/check_keywords.pl +++ b/src/tools/check_keywords.pl @@ -13,7 +13,7 @@ if (@ARGV) { $path = $ARGV[0]; shift @ARGV; } else { - $path = "."; + $path = "."; } $[ = 1; # set array base to 1 @@ -86,7 +86,7 @@ line: while (<GRAM>) { if ($arr[$fieldIndexer] eq '|') { next; } - + # Put this keyword into the right list push @{$keywords{$kcat}}, $arr[$fieldIndexer]; } diff --git a/src/tools/editors/emacs.samples b/src/tools/editors/emacs.samples index c1820f28c5..f755843d40 100644 --- a/src/tools/editors/emacs.samples +++ b/src/tools/editors/emacs.samples @@ -64,11 +64,11 @@ (add-hook 'c-mode-hook (function - (lambda nil + (lambda nil (if (string-match "pgsql" buffer-file-name) (progn (c-set-style "bsd") - (setq c-basic-offset 4) + (setq c-basic-offset 4) (setq tab-width 4) (c-set-offset 'case-label '+) (setq indent-tabs-mode t) diff --git a/src/tools/entab/Makefile b/src/tools/entab/Makefile index b252432e14..de8181828a 100644 --- a/src/tools/entab/Makefile +++ b/src/tools/entab/Makefile @@ -4,17 +4,17 @@ # TARGET = entab BINDIR = /usr/local/bin -XFLAGS = +XFLAGS = CFLAGS = -O -LIBS = +LIBS = $(TARGET) : entab.o halt.o $(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) entab.o halt.o $(LIBS) -entab.o : entab.c +entab.o : entab.c $(CC) -c $(XFLAGS) $(CFLAGS) entab.c -halt.o : halt.c +halt.o : halt.c $(CC) -c $(XFLAGS) $(CFLAGS) halt.c clean: diff --git a/src/tools/entab/entab.man b/src/tools/entab/entab.man index 1692ee631b..362ec730f4 100644 --- a/src/tools/entab/entab.man +++ b/src/tools/entab/entab.man @@ -41,7 +41,7 @@ leaving a large gap. The quote-protection option allows tab replacement without quoted strings being changed. Useful when strings in source code will not have the same tab stops -when executed in the program. +when executed in the program. .LP To change a text file created on a system with one size of tab stop to display properly on a device with different tab setting, diff --git a/src/tools/find_static b/src/tools/find_static index 28762728af..c7014e6014 100755 --- a/src/tools/find_static +++ b/src/tools/find_static @@ -26,8 +26,8 @@ echo " copy debug from '/tmp/"$$"'; - select * - into table debug2 + select * + into table debug2 from debug; create index idebug on debug(scope,func); @@ -35,8 +35,8 @@ echo " vacuum debug; vacuum debug2; - update debug2 - set scope = '_' + update debug2 + set scope = '_' from debug where debug2.func = debug.func and debug2.scope = 'T' and debug.scope = 'U'; diff --git a/src/tools/find_typedef b/src/tools/find_typedef index 838c29b881..8b07de62ef 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -4,12 +4,12 @@ # This script attempts to find all typedef's in the postgres binaries # by using 'nm' to report all typedef debugging symbols. -# -# For this program to work, you must have compiled all binaries with +# +# For this program to work, you must have compiled all binaries with # debugging symbols. # # This is run on BSD/OS 4.0 or Linux, so you may need to make changes. -# +# # Ignore the nm errors about a file not being a binary file. # # It gets typedefs by reading "STABS": diff --git a/src/tools/make_diff/README b/src/tools/make_diff/README index bc5cea4ceb..9401a74a64 100644 --- a/src/tools/make_diff/README +++ b/src/tools/make_diff/README @@ -14,7 +14,7 @@ for every file in the current directory. I can: cporig `grep -l HeapTuple *` If I use mkid (from ftp.postgreSQL.org), I can do: - + cporig `lid -kn 'fsyncOff'` and get a copy of every file containing that word. I can then do: @@ -29,7 +29,7 @@ to edit all those files. When I am ready to generate a patch, I run 'difforig' command from the top of the source tree: - + I pipe the output of this to a file to hold my patch, and the file names it processes appear on my screen. It creates a nice patch for me of all the files I used with cporig. diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index bb1aed7b7c..1e0c9d6e1e 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -25,9 +25,9 @@ my $postgres; my $libpq; my $contrib_defines = {'refint' => 'REFINT_VERBOSE'}; -my @contrib_uselibpq = ('dblink', 'oid2name', 'pgbench', 'pg_upgrade', +my @contrib_uselibpq = ('dblink', 'oid2name', 'pgbench', 'pg_upgrade', 'vacuumlo'); -my @contrib_uselibpgport = ('oid2name', 'pgbench', 'pg_standby', +my @contrib_uselibpgport = ('oid2name', 'pgbench', 'pg_standby', 'pg_archivecleanup', 'pg_upgrade', 'vacuumlo'); my $contrib_extralibs = {'pgbench' => ['wsock32.lib']}; my $contrib_extraincludes = {'tsearch2' => ['contrib/tsearch2'], 'dblink' => ['src/backend']}; diff --git a/src/tools/msvc/README b/src/tools/msvc/README index 531c286f47..58e266e11f 100644 --- a/src/tools/msvc/README +++ b/src/tools/msvc/README @@ -18,13 +18,13 @@ perltidy -b -bl -nsfs -naws -l=100 -ole=unix *.pl *.pm Notes about Visual Studio Express --------------------------------- To build PostgreSQL using Visual Studio Express, the Platform SDK -has to be installed. Since this is not included in the product +has to be installed. Since this is not included in the product originally, extra steps are needed to make it work. -First, download and install the latest Platform SDK from -www.microsoft.com. +First, download and install the latest Platform SDK from +www.microsoft.com. -Locate the files vcprojectengine.dll.express.config and +Locate the files vcprojectengine.dll.express.config and vcprojectengine.dll.config in the vc\vcpackages directory of the Visual C++ Express installation. In these files, add the paths to the Platform SDK to the Include, Library and Path tags. Be sure diff --git a/src/tools/pginclude/pgrminclude b/src/tools/pginclude/pgrminclude index 1e99b12b73..a8ec10a486 100755 --- a/src/tools/pginclude/pgrminclude +++ b/src/tools/pginclude/pgrminclude @@ -4,7 +4,7 @@ # src/tools/pginclude/pgrminclude trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15 -find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print | +find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print | grep -v '\./postgres.h' | grep -v '\./pg_config.h' | grep -v '\./c.h' | @@ -14,7 +14,7 @@ do then IS_INCLUDE="Y" else IS_INCLUDE="N" fi - + # loop through all includes cat "$FILE" | grep "^#include" | sed 's/^#include[ ]*[<"]\([^>"]*\).*$/\1/g' | @@ -39,7 +39,7 @@ do # remove defines from include files if [ "$IS_INCLUDE" = "Y" ] - then cat "$FILE" | grep -v "^#if" | grep -v "^#else" | + then cat "$FILE" | grep -v "^#if" | grep -v "^#else" | grep -v "^#endif" | sed 's/->[a-zA-Z0-9_\.]*//g' >/tmp/$$a else cat "$FILE" >/tmp/$$a fi diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README index 49e0893575..0fedfa99ff 100644 --- a/src/tools/pgindent/README +++ b/src/tools/pgindent/README @@ -4,7 +4,7 @@ pgindent ======== This can format all PostgreSQL *.c and *.h files, but excludes *.y, and -*.l files. +*.l files. 1) Change directory to the top of the build tree. @@ -36,8 +36,8 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and --------------------------------------------------------------------------- -We have standardized on NetBSD's indent. We have fixed a few bugs which -requre the NetBSD source to be patched with indent.bsd.patch patch. A +We have standardized on NetBSD's indent. We have fixed a few bugs which +requre the NetBSD source to be patched with indent.bsd.patch patch. A fully patched version is available at ftp://ftp.postgresql.org/pub/dev. GNU indent, version 2.2.6, has several problems, and is not recommended. diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent index 00267ec845..429dc7c64b 100755 --- a/src/tools/pgindent/pgindent +++ b/src/tools/pgindent/pgindent @@ -39,7 +39,7 @@ if [ "$?" -eq 0 ] then echo "You appear to have GNU indent rather than BSD indent." >&2 echo "See the pgindent/README file for a description of its problems." >&2 EXTRA_OPTS="-cdb -bli0 -npcs -cli4 -sc" -else +else EXTRA_OPTS="-cli1" fi @@ -193,7 +193,7 @@ do # isn't needed for general use. # awk ' # { -# line3 = $0; +# line3 = $0; # if (skips > 0) # skips--; # if (line1 ~ / *{$/ && @@ -221,7 +221,7 @@ do # Remove blank line between opening brace and block comment. awk ' { - line3 = $0; + line3 = $0; if (skips > 0) skips--; if (line1 ~ / *{$/ && @@ -326,10 +326,10 @@ do print line1; }' | -# Move prototype names to the same line as return type. Useful for ctags. +# Move prototype names to the same line as return type. Useful for ctags. # Indent should do this, but it does not. It formats prototypes just # like real functions. - awk ' BEGIN {paren_level = 0} + awk ' BEGIN {paren_level = 0} { if ($0 ~ /^[a-zA-Z_][a-zA-Z_0-9]*[^\(]*$/) { diff --git a/src/tools/pgtest b/src/tools/pgtest index 11223f31cc..c5356fced8 100755 --- a/src/tools/pgtest +++ b/src/tools/pgtest @@ -18,12 +18,12 @@ TMP="/tmp/$$" [ "X$1" != "X-n" ] && PGCLEAN=clean -(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | +(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | (tee $TMP/0; exit `cat $TMP/ret`) && cat $TMP/0 | -# The following grep's have to be adjusted for your setup because +# The following grep's have to be adjusted for your setup because # certain warnings are acceptable. -grep -i warning | -grep -v setproctitle | -grep -v find_rule | +grep -i warning | +grep -v setproctitle | +grep -v find_rule | grep -v yy_flex_realloc |
