diff options
author | Peter Eisentraut | 2000-09-08 18:29:28 +0000 |
---|---|---|
committer | Peter Eisentraut | 2000-09-08 18:29:28 +0000 |
commit | da06bc1d4088508781a82737365a486c2927a2f8 (patch) | |
tree | 11190416a85c3b872407293afdc1d948233b69db /src/bin/scripts/createlang.sh | |
parent | f2bfe8a24c46133f81e188653a127f939eb33c4a (diff) |
Make building scripts kind of consistent in look and feel, kind of immune
to parallel make, kind of resistent to corruption due to incomplete builds.
Diffstat (limited to 'src/bin/scripts/createlang.sh')
-rw-r--r-- | src/bin/scripts/createlang.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/scripts/createlang.sh b/src/bin/scripts/createlang.sh index 46e503baf49..0ba0edaa97b 100644 --- a/src/bin/scripts/createlang.sh +++ b/src/bin/scripts/createlang.sh @@ -8,7 +8,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.14 2000/08/20 11:56:29 petere Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.15 2000/09/08 18:29:28 petere Exp $ # #------------------------------------------------------------------------- @@ -160,7 +160,7 @@ fi # Check that we have PGLIB # ---------- if [ -z "$PGLIB" ]; then - PGLIB='__libdir__' + PGLIB='@libdir@' fi # ---------- @@ -206,13 +206,14 @@ case "$langname" in ;; esac +DLSUFFIX='@DLSUFFIX@' # ---------- # Check that the shared object for the call handler is installed # in PGLIB # ---------- -if [ ! -f $PGLIB/${object}__DLSUFFIX__ ]; then - echo "$CMDNAME: cannot find the file $PGLIB/${langname}__DLSUFFIX__" +if [ ! -f "$PGLIB/$object$DLSUFFIX" ]; then + echo "$CMDNAME: cannot find the file \`$PGLIB/$langname$DLSUFFIX'" echo "" echo "This file contains the call handler for $lancomp. By default," echo "only PL/pgSQL is built and installed; other languages must be" @@ -251,7 +252,7 @@ fi # ---------- # Create the call handler and the language # ---------- -$PSQL "CREATE FUNCTION $handler () RETURNS OPAQUE AS '$PGLIB/${object}__DLSUFFIX__' LANGUAGE 'newC'" +$PSQL "CREATE FUNCTION $handler () RETURNS OPAQUE AS '$PGLIB/${object}$DLSUFFIX' LANGUAGE 'newC'" if [ $? -ne 0 ]; then echo "$CMDNAME: language installation failed" exit 1 |