|
7 | 7 | # Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group |
8 | 8 | # Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | # |
10 | | -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.25 2001/05/12 01:30:30 petere Exp $ |
| 10 | +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.26 2001/05/23 22:00:43 petere Exp $ |
11 | 11 | # |
12 | 12 | #------------------------------------------------------------------------- |
13 | 13 |
|
|
170 | 170 | # Check that we have PGLIB |
171 | 171 | # ---------- |
172 | 172 | if [-z"$PGLIB" ];then |
173 | | -PGLIB='@libdir@' |
| 173 | +PGLIB='$libdir' |
174 | 174 | fi |
175 | 175 |
|
176 | 176 | # ---------- |
@@ -222,27 +222,6 @@ case "$langname" in |
222 | 222 | ;; |
223 | 223 | esac |
224 | 224 |
|
225 | | -DLSUFFIX='@DLSUFFIX@' |
226 | | - |
227 | | -# ---------- |
228 | | -# Check that the shared object for the call handler is installed |
229 | | -# in PGLIB |
230 | | -# ---------- |
231 | | -if [!-f"$PGLIB/$object$DLSUFFIX" ];then |
232 | | - ( |
233 | | -echo"$CMDNAME: cannot find the file '$PGLIB/$langname$DLSUFFIX'" |
234 | | -echo"" |
235 | | -echo"This file contains the call handler for$lancomp. By default," |
236 | | -echo"only PL/pgSQL is built and installed; other languages must be" |
237 | | -echo"explicitly enabled at configure time." |
238 | | -echo"" |
239 | | -echo"To install PL/Tcl, make sure the option --with-tcl is given to" |
240 | | -echo"configure, then recompile and install. To install PL/Perl use" |
241 | | -echo"--with-perl." |
242 | | - )1>&2 |
243 | | -exit 1 |
244 | | -fi |
245 | | - |
246 | 225 |
|
247 | 226 | PSQL="${PATHNAME}psql -A -t -q$PSQLOPT -d$dbname -c" |
248 | 227 |
|
|
280 | 259 | # ---------- |
281 | 260 | # Create the call handler and the language |
282 | 261 | # ---------- |
283 | | -sqlcmd="CREATE FUNCTION$handler () RETURNS OPAQUE AS '$PGLIB/${object}$DLSUFFIX' LANGUAGE 'C';" |
| 262 | +sqlcmd="CREATE FUNCTION$handler () RETURNS OPAQUE AS '$PGLIB/${object}' LANGUAGE 'C';" |
284 | 263 | if ["$showsql"= yes ];then |
285 | 264 | echo"$sqlcmd" |
286 | 265 | fi |
|