Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/curl/packages/OS400/makefile.sh @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 #!/bin/sh | |
| 2 # | |
| 3 # curl compilation script for the OS/400. | |
| 4 # | |
| 5 # | |
| 6 # This is a shell script since make is not a standard component of OS/400. | |
| 7 | |
| 8 SCRIPTDIR=`dirname "${0}"` | |
| 9 . "${SCRIPTDIR}/initscript.sh" | |
| 10 cd "${TOPDIR}" | |
| 11 | |
| 12 | |
| 13 # Create the OS/400 library if it does not exist. | |
| 14 | |
| 15 if action_needed "${LIBIFSNAME}" | |
| 16 then CMD="CRTLIB LIB(${TARGETLIB}) TEXT('curl: multiprotocol support API')" | |
| 17 system "${CMD}" | |
| 18 fi | |
| 19 | |
| 20 | |
| 21 # Create the DOCS source file if it does not exist. | |
| 22 | |
| 23 if action_needed "${LIBIFSNAME}/DOCS.FILE" | |
| 24 then CMD="CRTSRCPF FILE(${TARGETLIB}/DOCS) RCDLEN(240)" | |
| 25 CMD="${CMD} CCSID(${TGTCCSID}) TEXT('Documentation texts')" | |
| 26 system "${CMD}" | |
| 27 fi | |
| 28 | |
| 29 | |
| 30 # Copy some documentation files if needed. | |
| 31 | |
| 32 for TEXT in "${TOPDIR}/COPYING" "${SCRIPTDIR}/README.OS400" \ | |
| 33 "${TOPDIR}/CHANGES" "${TOPDIR}/docs/THANKS" "${TOPDIR}/docs/FAQ" \ | |
| 34 "${TOPDIR}/docs/FEATURES" "${TOPDIR}/docs/SSLCERTS.md" \ | |
| 35 "${TOPDIR}/docs/RESOURCES" "${TOPDIR}/docs/VERSIONS" \ | |
| 36 "${TOPDIR}/docs/HISTORY.md" | |
| 37 do MEMBER="`basename \"${TEXT}\" .OS400`" | |
| 38 MEMBER="`basename \"${MEMBER}\" .md`" | |
| 39 MEMBER="${LIBIFSNAME}/DOCS.FILE/`db2_name \"${MEMBER}\"`.MBR" | |
| 40 | |
| 41 if action_needed "${MEMBER}" "${TEXT}" | |
| 42 then CMD="CPY OBJ('${TEXT}') TOOBJ('${MEMBER}') TOCCSID(${TGTCCSID})" | |
| 43 CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)" | |
| 44 system "${CMD}" | |
| 45 fi | |
| 46 done | |
| 47 | |
| 48 | |
| 49 # Build in each directory. | |
| 50 | |
| 51 # for SUBDIR in include lib src tests | |
| 52 for SUBDIR in include lib src | |
| 53 do "${SCRIPTDIR}/make-${SUBDIR}.sh" | |
| 54 done |
