make-include.sh
来自「THIS IS HTTP CURL Example」· Shell 代码 · 共 49 行
SH
49 行
#!/bin/sh## Installation of the include files in the OS/400 library.## $Id: make-include.sh,v 1.2 2007-08-24 15:56:59 patrickm Exp $SCRIPTDIR=`dirname "${0}"`. "${SCRIPTDIR}/initscript.sh"cd "${TOPDIR}/include"# 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(){ sed -e '1i\#pragma enum(int)\' -e '$a\#pragma enum(pop)\' < "${2}" > "${1}"}# Copy the header files.for HFILE in curl/*.h ${SCRIPTDIR}/ccsidcurl.hdo DEST="${SRCPF}/`db2_name \"${HFILE}\"`.MBR" if action_needed "${DEST}" "${HFILE}" then copy_hfile "${DEST}" "${HFILE}" fidone# Copy the ILE/RPG include file, setting-up version number. versioned_copy "${SCRIPTDIR}/curl.inc.in" "${SRCPF}/CURL.INC.MBR"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?