3 # Installation of the include files in the OS/400 library.
6 SCRIPTDIR=`dirname "${0}"`
7 . "${SCRIPTDIR}/initscript.sh"
11 # Produce the curlbuild.h include file if not yet in distribution (CVS).
13 if action_needed curl/curlbuild.h
14 then if action_needed curl/curlbuild.h curl/curlbuild.h.dist
15 then cp -p curl/curlbuild.h.dist curl/curlbuild.h
20 # Create the OS/400 source program file for the include files.
22 SRCPF="${LIBIFSNAME}/H.FILE"
24 if action_needed "${SRCPF}"
25 then CMD="CRTSRCPF FILE(${TARGETLIB}/H) RCDLEN(112)"
26 CMD="${CMD} CCSID(${TGTCCSID}) TEXT('curl: Header files')"
31 # Enumeration values are used as va_arg tagfields, so they MUST be
45 ' < "${srcfile}" > "${destfile}"
48 # Copy the header files.
50 for HFILE in curl/*.h ${SCRIPTDIR}/ccsidcurl.h
51 do DEST="${SRCPF}/`db2_name \"${HFILE}\"`.MBR"
52 if action_needed "${DEST}" "${HFILE}"
53 then copy_hfile "${DEST}" "${HFILE}"
58 # Copy the ILE/RPG include file, setting-up version number.
60 versioned_copy "${SCRIPTDIR}/curl.inc.in" "${SRCPF}/CURL.INC.MBR"
63 # Duplicate file H as CURL to support more include path forms.
65 if action_needed "${LIBIFSNAME}/CURL.FILE"
67 else system "DLTF FILE(${TARGETLIB}/CURL)"
70 CMD="CRTDUPOBJ OBJ(H) FROMLIB(${TARGETLIB}) OBJTYPE(*FILE) TOLIB(*FROMLIB)"
71 CMD="${CMD} NEWOBJ(CURL) DATA(*YES)"