summaryrefslogtreecommitdiff
path: root/mobicore/common/curl/packages/OS400/make-include.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mobicore/common/curl/packages/OS400/make-include.sh')
-rw-r--r--mobicore/common/curl/packages/OS400/make-include.sh72
1 files changed, 0 insertions, 72 deletions
diff --git a/mobicore/common/curl/packages/OS400/make-include.sh b/mobicore/common/curl/packages/OS400/make-include.sh
deleted file mode 100644
index 834ee2f..0000000
--- a/mobicore/common/curl/packages/OS400/make-include.sh
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-#
-# Installation of the include files in the OS/400 library.
-#
-
-SCRIPTDIR=`dirname "${0}"`
-. "${SCRIPTDIR}/initscript.sh"
-cd "${TOPDIR}/include"
-
-
-# Produce the curlbuild.h include file if not yet in distribution (CVS).
-
-if action_needed curl/curlbuild.h
-then if action_needed curl/curlbuild.h curl/curlbuild.h.dist
- then cp -p curl/curlbuild.h.dist curl/curlbuild.h
- fi
-fi
-
-
-# Create the OS/400 source program file for the include files.
-
-SRCPF="${LIBIFSNAME}/H.FILE"
-
-if action_needed "${SRCPF}"
-then CMD="CRTSRCPF FILE(${TARGETLIB}/H) RCDLEN(112)"
- CMD="${CMD} CCSID(${TGTCCSID}) TEXT('curl: Header files')"
- system "${CMD}"
-fi
-
-
-# Enumeration values are used as va_arg tagfields, so they MUST be
-# integers.
-
-copy_hfile()
-
-{
- destfile="${1}"
- srcfile="${2}"
- shift
- shift
- sed -e '1i\
-#pragma enum(int)\
-' "${@}" -e '$a\
-#pragma enum(pop)\
-' < "${srcfile}" > "${destfile}"
-}
-
-# Copy the header files.
-
-for HFILE in curl/*.h ${SCRIPTDIR}/ccsidcurl.h
-do DEST="${SRCPF}/`db2_name \"${HFILE}\"`.MBR"
- if action_needed "${DEST}" "${HFILE}"
- then copy_hfile "${DEST}" "${HFILE}"
- fi
-done
-
-
-# Copy the ILE/RPG include file, setting-up version number.
-
- versioned_copy "${SCRIPTDIR}/curl.inc.in" "${SRCPF}/CURL.INC.MBR"
-
-
-# Duplicate file H as CURL to support more include path forms.
-
-if action_needed "${LIBIFSNAME}/CURL.FILE"
-then :
-else system "DLTF FILE(${TARGETLIB}/CURL)"
-fi
-
-CMD="CRTDUPOBJ OBJ(H) FROMLIB(${TARGETLIB}) OBJTYPE(*FILE) TOLIB(*FROMLIB)"
-CMD="${CMD} NEWOBJ(CURL) DATA(*YES)"
-system "${CMD}"