Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a67343d6
Commit
a67343d6
authored
Aug 20, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Substitute libdir into createlang as last resort so one doesn't have to set
PGLIB or use any option anymore.
parent
9b3d66ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
src/bin/scripts/Makefile
src/bin/scripts/Makefile
+5
-3
src/bin/scripts/createlang.sh
src/bin/scripts/createlang.sh
+3
-7
No files found.
src/bin/scripts/Makefile
View file @
a67343d6
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.
6 2000/06/28 05:09:37 tgl
Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.
7 2000/08/20 11:56:29 petere
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -17,10 +17,12 @@ SCRIPTS := createdb dropdb createuser dropuser createlang droplang vacuumdb
all
:
$(SCRIPTS)
createlang
:
createlang.sh
sed
-e
's/__DLSUFFIX__/
$(DLSUFFIX)
/'
$<
>
$@
sed
-e
's:__DLSUFFIX__:
$(DLSUFFIX)
:g'
\
-e
's:__libdir__:
$(libdir)
:g'
\
$<
>
$@
install
:
all installdirs
for
i
in
$(SCRIPTS)
;
do
$(INSTALL_SCRIPT)
$$
i
$(bindir)
;
done
for
i
in
$(SCRIPTS)
;
do
$(INSTALL_SCRIPT)
$$
i
$(bindir)
||
exit
;
done
installdirs
:
$(mkinstalldirs)
$(bindir)
...
...
src/bin/scripts/createlang.sh
View file @
a67343d6
...
...
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.1
3 2000/07/19 11:53:02 wieck
Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.1
4 2000/08/20 11:56:29 petere
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -129,7 +129,7 @@ if [ "$usage" ]; then
echo
" -U, --username=USERNAME Username to connect as"
echo
" -W, --password Prompt for password"
echo
" -d, --dbname=DBNAME Database to install language in"
echo
" -L, --pglib=
PGLIB Find language interpreter in directory PGLIB
"
echo
" -L, --pglib=
DIRECTORY Find language interpreter file in DIRECTORY
"
echo
" -l, --list Show a list of currently installed languages"
echo
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
...
...
@@ -160,11 +160,7 @@ fi
# Check that we have PGLIB
# ----------
if
[
-z
"
$PGLIB
"
]
;
then
echo
"
$CMDNAME
: missing required argument PGLIB directory"
echo
"(This is the directory where the interpreter for the procedural"
echo
"language is stored. Traditionally, these are installed in whatever"
echo
"'lib' directory was specified at configure time.)"
exit
1
PGLIB
=
'__libdir__'
fi
# ----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment