geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 lines
1.3 KiB

  1. #!/bin/sh
  2. #
  3. # libssh2 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. SCRIPTDIR=`dirname "${0}"`
  8. . "${SCRIPTDIR}/initscript.sh"
  9. cd "${TOPDIR}"
  10. # Create the OS/400 library if it does not exist.
  11. if action_needed "${LIBIFSNAME}"
  12. then CMD="CRTLIB LIB(${TARGETLIB}) TEXT('libssh2: SSH2 protocol API')"
  13. system "${CMD}"
  14. fi
  15. # Create the DOCS source file if it does not exist.
  16. if action_needed "${LIBIFSNAME}/DOCS.FILE"
  17. then CMD="CRTSRCPF FILE(${TARGETLIB}/DOCS) RCDLEN(240)"
  18. CMD="${CMD} CCSID(${TGTCCSID}) TEXT('Documentation texts')"
  19. system "${CMD}"
  20. fi
  21. # Copy some documentation files if needed.
  22. for TEXT in "${TOPDIR}/COPYING" "${SCRIPTDIR}/README400" \
  23. "${TOPDIR}/NEWS" "${TOPDIR}/README" "${TOPDIR}/docs/AUTHORS" \
  24. "${TOPDIR}/docs/BINDINGS"
  25. do MEMBER="${LIBIFSNAME}/DOCS.FILE/`db2_name \"${TEXT}\"`.MBR"
  26. if action_needed "${MEMBER}" "${TEXT}"
  27. then CMD="CPY OBJ('${TEXT}') TOOBJ('${MEMBER}') TOCCSID(${TGTCCSID})"
  28. CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)"
  29. system "${CMD}"
  30. fi
  31. done
  32. # Build in each directory.
  33. for SUBDIR in include rpg src
  34. do "${SCRIPTDIR}/make-${SUBDIR}.sh"
  35. done