File tree Expand file tree Collapse file tree 2 files changed +5
-28
lines changed Expand file tree Collapse file tree 2 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 5
5
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.12 2001/02/18 18:34:01 momjian Exp $
8
+ # $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.13 2001/05/23 22:00:43 petere Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
@@ -18,9 +18,7 @@ SCRIPTS := createdb dropdb createuser dropuser createlang droplang vacuumdb
18
18
all : $(SCRIPTS )
19
19
20
20
createlang : createlang.sh
21
- sed -e ' s/@DLSUFFIX@/$(DLSUFFIX)/g' \
22
- -e ' s,@libdir@,$(libdir),g' \
23
- $< > $@
21
+ cp $< $@
24
22
chmod a+x $@
25
23
26
24
install : all installdirs
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments