Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita67343d

Browse files
committed
Substitute libdir into createlang as last resort so one doesn't have to set
PGLIB or use any option anymore.
1 parent9b3d66e commita67343d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

‎src/bin/scripts/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.6 2000/06/28 05:09:37 tgl Exp $
7+
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.7 2000/08/20 11:56:29 petere Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -17,10 +17,12 @@ SCRIPTS := createdb dropdb createuser dropuser createlang droplang vacuumdb
1717
all:$(SCRIPTS)
1818

1919
createlang: createlang.sh
20-
sed -e's/__DLSUFFIX__/$(DLSUFFIX)/'$<>$@
20+
sed -e's:__DLSUFFIX__:$(DLSUFFIX):g'\
21+
-e's:__libdir__:$(libdir):g'\
22+
$<>$@
2123

2224
install: all installdirs
23-
foriin$(SCRIPTS);do$(INSTALL_SCRIPT)$$i$(bindir);done
25+
foriin$(SCRIPTS);do$(INSTALL_SCRIPT)$$i$(bindir)||exit;done
2426

2527
installdirs:
2628
$(mkinstalldirs)$(bindir)

‎src/bin/scripts/createlang.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.13 2000/07/19 11:53:02 wieck Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.14 2000/08/20 11:56:29 petere Exp $
1212
#
1313
#-------------------------------------------------------------------------
1414

@@ -129,7 +129,7 @@ if [ "$usage" ]; then
129129
echo" -U, --username=USERNAME Username to connect as"
130130
echo" -W, --password Prompt for password"
131131
echo" -d, --dbname=DBNAME Database to install language in"
132-
echo" -L, --pglib=PGLIBFind language interpreter indirectory PGLIB"
132+
echo" -L, --pglib=DIRECTORY Find language interpreterfileinDIRECTORY"
133133
echo" -l, --list Show a list of currently installed languages"
134134
echo
135135
echo"Report bugs to <pgsql-bugs@postgresql.org>."
@@ -160,11 +160,7 @@ fi
160160
# Check that we have PGLIB
161161
# ----------
162162
if [-z"$PGLIB" ];then
163-
echo"$CMDNAME: missing required argument PGLIB directory"
164-
echo"(This is the directory where the interpreter for the procedural"
165-
echo"language is stored. Traditionally, these are installed in whatever"
166-
echo"'lib' directory was specified at configure time.)"
167-
exit 1
163+
PGLIB='__libdir__'
168164
fi
169165

170166
# ----------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp