From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/os400/make-bldcsndfa.sh | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 libxml2-2.9.10/os400/make-bldcsndfa.sh (limited to 'libxml2-2.9.10/os400/make-bldcsndfa.sh') diff --git a/libxml2-2.9.10/os400/make-bldcsndfa.sh b/libxml2-2.9.10/os400/make-bldcsndfa.sh new file mode 100644 index 0000000..57cf012 --- /dev/null +++ b/libxml2-2.9.10/os400/make-bldcsndfa.sh @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Compilation script for the iconv names DFA builer. +# +# See Copyright for the status of this software. +# +# Author: Patrick Monnerat , DATASPHERE S.A. +# + +SCRIPTDIR=`dirname "${0}"` +. "${SCRIPTDIR}/initscript.sh" +cd "${TOPDIR}/os400/iconv/bldcsndfa" + + +# This is for old XML library (bootstrapping). +#rm -rf xml.h xml +#ln -s /QSYS.LIB/XML.LIB/H.FILE/XML.MBR xml.h +#mkdir xml +#mkdir xml/h +#ln -s /QSYS.LIB/XML.LIB/H.FILE/UTF8.MBR xml/h/utf8 + + +# Compile. + +CMD="CRTCMOD MODULE(${TARGETLIB}/BLDCSNDFA) SRCSTMF('bldcsndfa.c')" +CMD="${CMD} SYSIFCOPT(*IFS64IO) LANGLVL(*EXTENDED) LOCALETYPE(*LOCALE)" +CMD="${CMD} INCDIR(" +CMD="${CMD} '${IFSDIR}/include' ${INCLUDES})" +CMD="${CMD} TGTCCSID(${TGTCCSID}) TGTRLS(${TGTRLS})" +CMD="${CMD} OUTPUT(${OUTPUT})" +CMD="${CMD} OPTIMIZE(10)" +CMD="${CMD} DBGVIEW(${DEBUG})" +#CMD="${CMD} DEFINE('OLDXML' 'xmlXPathSetContextNode=xmlXPathSetCurrentNode')" + +system "${CMD}" + +# Link + +CMD="CRTPGM PGM(${TARGETLIB}/BLDCSNDFA) MODULE(${TARGETLIB}/BLDCSNDFA)" +CMD="${CMD} BNDDIR(${TARGETLIB}/${DYNBNDDIR})" +#CMD="${CMD} BNDDIR(XML/XML)" +CMD="${CMD} TGTRLS(${TGTRLS})" +system "${CMD}" -- cgit v1.2.3