Commit 0dec669a authored by Bruce Momjian's avatar Bruce Momjian

Change $< to $+ in scripts Makefile, and clean up pg_encoding if logic.

parent 7cf0f634
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.20 1999/12/05 20:02:43 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.21 1999/12/08 10:29:36 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR= .. SRCDIR= ..
include ../Makefile.global include ../Makefile.global
DIRS = pg_id pg_version psql pg_dump pg_passwd cleardbdir \ DIRS = pg_id pg_version psql pg_dump pg_passwd \
scripts initdb initlocation ipcclean scripts initdb initlocation ipcclean
ifdef MULTIBYTE ifdef MULTIBYTE
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.13 1999/05/20 16:50:05 wieck Exp $ # $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.14 1999/12/08 10:29:39 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -21,7 +21,7 @@ initdb: initdb.sh ...@@ -21,7 +21,7 @@ initdb: initdb.sh
initdb.sh > initdb initdb.sh > initdb
install: initdb install: initdb
$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< $(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
clean: clean:
rm -f initdb rm -f initdb
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.7 1999/06/04 21:12:06 tgl Exp $ # $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.8 1999/12/08 10:29:43 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -20,7 +20,7 @@ initlocation: initlocation.sh ...@@ -20,7 +20,7 @@ initlocation: initlocation.sh
cp -p initlocation.sh initlocation cp -p initlocation.sh initlocation
install: initlocation install: initlocation
$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< $(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
clean: clean:
rm -f initlocation rm -f initlocation
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.8 1998/08/22 05:19:29 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.9 1999/12/08 10:29:46 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -23,7 +23,7 @@ ipcclean: ...@@ -23,7 +23,7 @@ ipcclean:
sed $(SEDSCRIPT) <ipcclean.sh >ipcclean sed $(SEDSCRIPT) <ipcclean.sh >ipcclean
install: ipcclean install: ipcclean
$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< $(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
clean: clean:
rm -f ipcclean rm -f ipcclean
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.1 1999/12/06 07:23:41 ishii Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.2 1999/12/08 10:29:51 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -20,7 +20,7 @@ pg_ctl: pg_ctl.sh ...@@ -20,7 +20,7 @@ pg_ctl: pg_ctl.sh
sed -e 's@__BINDIR__@$(BINDIR)@' pg_ctl.sh > pg_ctl sed -e 's@__BINDIR__@$(BINDIR)@' pg_ctl.sh > pg_ctl
install: pg_ctl install: pg_ctl
$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< $(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
clean: clean:
rm -f pg_ctl rm -f pg_ctl
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.2 1999/12/05 20:02:48 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.3 1999/12/08 10:29:55 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -32,7 +32,7 @@ droplang: ...@@ -32,7 +32,7 @@ droplang:
vacuumdb: vacuumdb:
install: $(SCRIPTS) install: $(SCRIPTS)
$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$(X)$< $(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
clean: clean:
rm -f createlang rm -f createlang
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.2 1999/12/07 22:41:44 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.3 1999/12/08 10:29:55 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -112,9 +112,12 @@ if [ "$usage" ]; then ...@@ -112,9 +112,12 @@ if [ "$usage" ]; then
fi fi
if [ "$MB" -a -z "`pg_encoding '$MB'`" ]; then if [ "$MB" ]
then if [ -z "`pg_encoding '$MB'`" ]
then
echo "$CMDNAME: \"$MB\" is not a valid encoding name." echo "$CMDNAME: \"$MB\" is not a valid encoding name."
exit 1 exit 1
fi
fi fi
if [ -z "$dbname" ]; then if [ -z "$dbname" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment