Fix createlang -l dbname so it works, update sgml.

This commit is contained in:
Bruce Momjian 2000-05-15 16:12:39 +00:00
parent 5a72eadc98
commit 52831da26c
2 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.5 2000/03/27 17:14:42 thomas Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.6 2000/05/15 16:12:38 momjian Exp $
Postgres documentation Postgres documentation
--> -->
@ -24,7 +24,7 @@ Postgres documentation
</refsynopsisdivinfo> </refsynopsisdivinfo>
<synopsis> <synopsis>
createlang [ <replaceable class="parameter">connection options</replaceable> ] [ <replaceable class="parameter">langname</replaceable> [ <replaceable class="parameter">dbname</replaceable> ] ] createlang [ <replaceable class="parameter">connection options</replaceable> ] [ <replaceable class="parameter">langname</replaceable> [ <replaceable class="parameter">dbname</replaceable> ] ]
createlang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l createlang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l [ <replaceable class="parameter">dbname</replaceable> ]
</synopsis> </synopsis>
<refsect2 id="R2-APP-CREATELANG-1"> <refsect2 id="R2-APP-CREATELANG-1">

View File

@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.8 2000/03/25 19:10:27 tgl Exp $ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.9 2000/05/15 16:12:39 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -103,11 +103,15 @@ do
exit 1 exit 1
;; ;;
*) *)
langname="$1" if [ "$list" = 't' ]
if [ "$2" ]; then then dbname="$1"
else langname="$1"
if [ "$2" ]
then
shift shift
dbname="$1" dbname="$1"
fi fi
fi
;; ;;
esac esac
shift shift