⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
libssh2-1.9.0
/
os400
/
View File Name :
make-include.sh
#!/bin/sh # # Installation of the header files in the OS/400 library. # SCRIPTDIR=`dirname "${0}"` . "${SCRIPTDIR}/initscript.sh" cd "${TOPDIR}/include" # Create the OS/400 source program file for the header files. SRCPF="${LIBIFSNAME}/H.FILE" if action_needed "${SRCPF}" then CMD="CRTSRCPF FILE(${TARGETLIB}/H) RCDLEN(112)" CMD="${CMD} CCSID(${TGTCCSID}) TEXT('libssh2: Header files')" system "${CMD}" fi # Create the IFS directory for the header files. IFSINCLUDE="${IFSDIR}/include" if action_needed "${IFSINCLUDE}" then mkdir -p "${IFSINCLUDE}" fi copy_hfile() { destfile="${1}" srcfile="${2}" shift shift sed -e '1i\ #pragma datamodel(P128)\ ' "${@}" -e '$a\ #pragma datamodel(pop)\ ' < "${srcfile}" > "${destfile}" } # Copy the header files. for HFILE in *.h "${TOPDIR}/os400/libssh2_ccsid.h" do DEST="${SRCPF}/`db2_name \"${HFILE}\"`.MBR" if action_needed "${DEST}" "${HFILE}" then copy_hfile "${DEST}" "${HFILE}" IFSDEST="${IFSINCLUDE}/`basename \"${HFILE}\"`" rm -f "${IFSDEST}" ln -s "${DEST}" "${IFSDEST}" fi done