aboutsummaryrefslogtreecommitdiff
path: root/packages/OS400/initscript.sh
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2008-01-16 16:04:47 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2008-01-16 16:04:47 +0000
commit3ee32d79207845f976ee89830063a3faa689e566 (patch)
tree0c338f517a694cbcda0882696e74b900481197ca /packages/OS400/initscript.sh
parentb3de497d8316647d988e97703f975e0acd40cacd (diff)
OS/400 update:
New declarations in curl.h reported to curl.inc.in. Copyrights extended to 2008. SONAME handling introduced in build scripts.
Diffstat (limited to 'packages/OS400/initscript.sh')
-rw-r--r--packages/OS400/initscript.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/OS400/initscript.sh b/packages/OS400/initscript.sh
index f32e8915b..b851e366b 100644
--- a/packages/OS400/initscript.sh
+++ b/packages/OS400/initscript.sh
@@ -20,6 +20,12 @@ TOPDIR=`dirname "${SCRIPTDIR}"`
TOPDIR=`dirname "${TOPDIR}"`
export SCRIPTDIR TOPDIR
+# Extract the SONAME from the library makefile.
+
+SONAME=`sed -e '/^VERSION=/!d' -e 's/^.* \([0-9]*\):.*$/\1/' \
+ < "${TOPDIR}/lib/Makefile.am"`
+export SONAME
+
################################################################################
#
@@ -30,7 +36,7 @@ export SCRIPTDIR TOPDIR
TARGETLIB='CURL' # Target OS/400 program library
STATBNDDIR='CURL_A' # Static binding directory.
DYNBNDDIR='CURL' # Dynamic binding directory.
-SRVPGM='CURL' # Service program.
+SRVPGM="CURL.${SONAME}" # Service program.
TGTCCSID='500' # Target CCSID of objects
DEBUG='*ALL' # Debug level
OPTIMIZE='10' # Optimisation level