]> granicus.if.org Git - curl/commitdiff
Adapting OS400 build scripts to new features: new curlbuild.h file and soname in...
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>
Mon, 25 Aug 2008 13:58:45 +0000 (13:58 +0000)
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>
Mon, 25 Aug 2008 13:58:45 +0000 (13:58 +0000)
packages/OS400/initscript.sh
packages/OS400/make-include.sh

index ad4aa7da2d6c20dab630d700bc512319aeb116fd..308c6d72bf5467a5da33b4f85e5c30b955c0780b 100644 (file)
@@ -22,7 +22,7 @@ export SCRIPTDIR TOPDIR
 
 #  Extract the SONAME from the library makefile.
 
-SONAME=`sed -e '/^VERSION=/!d' -e 's/^.* \([0-9]*\):.*$/\1/'           \
+SONAME=`sed -e '/^VERSIONINFO=/!d' -e 's/^.* \([0-9]*\):.*$/\1/' -e 'q' \
                                                 < "${TOPDIR}/lib/Makefile.am"`
 export SONAME
 
index 3607abb93703c039f0299558c721f2dab80d1873..ecbc7e1dbfff12d029043d3856dccf7b2ecf9866 100644 (file)
@@ -9,6 +9,13 @@ SCRIPTDIR=`dirname "${0}"`
 cd "${TOPDIR}/include"
 
 
+#      Produce the curlbuild.h include file.
+
+if action_needed curl/curlbuild.h curl/curlbuild.h.dist
+then   cp -p curl/curlbuild.h.dist curl/curlbuild.h
+fi
+
+
 #       Create the OS/400 source program file for the include files.
 
 SRCPF="${LIBIFSNAME}/H.FILE"