aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2007-08-24 15:56:59 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2007-08-24 15:56:59 +0000
commita892cf2c12c77dbea9528187235761de466530fc (patch)
tree9cefdb5637491c2cd7525f00fbdfa5f360423eac
parent7cba40b21831b54c9a36fce40209c49fd7e4aa00 (diff)
Adding DOCS file in OS400 installation library with license and various other documentation text files.
Setting character set of OS400 installed source components
-rw-r--r--packages/OS400/make-include.sh2
-rw-r--r--packages/OS400/makefile.sh27
2 files changed, 28 insertions, 1 deletions
diff --git a/packages/OS400/make-include.sh b/packages/OS400/make-include.sh
index a752028e0..3607abb93 100644
--- a/packages/OS400/make-include.sh
+++ b/packages/OS400/make-include.sh
@@ -15,7 +15,7 @@ SRCPF="${LIBIFSNAME}/H.FILE"
if action_needed "${SRCPF}"
then CMD="CRTSRCPF FILE(${TARGETLIB}/H) RCDLEN(112)"
- CMD="${CMD} TEXT('curl: Header files')"
+ CMD="${CMD} CCSID(${TGTCCSID}) TEXT('curl: Header files')"
system "${CMD}"
fi
diff --git a/packages/OS400/makefile.sh b/packages/OS400/makefile.sh
index a3d657f1b..6f435d4a3 100644
--- a/packages/OS400/makefile.sh
+++ b/packages/OS400/makefile.sh
@@ -19,6 +19,33 @@ then CMD="CRTLIB LIB(${TARGETLIB}) TEXT('curl: multiprotocol support API')"
fi
+# Create the DOCS source file if it does not exist.
+
+if action_needed "${LIBIFSNAME}/DOCS.FILE"
+then CMD="CRTSRCPF FILE(${TARGETLIB}/DOCS) RCDLEN(112)"
+ CMD="${CMD} CCSID(${TGTCCSID}) TEXT('Documentation texts')"
+ system "${CMD}"
+fi
+
+
+# Copy some documentation files if needed.
+
+for TEXT in "${TOPDIR}/COPYING" "${SCRIPTDIR}/README.OS400" \
+ "${TOPDIR}/CHANGES" "${TOPDIR}/docs/THANKS" "${TOPDIR}/docs/FAQ" \
+ "${TOPDIR}/docs/FEATURES" "${TOPDIR}/docs/SSLCERTS" \
+ "${TOPDIR}/docs/RESOURCES" "${TOPDIR}/docs/VERSIONS" \
+ "${TOPDIR}/docs/HISTORY"
+do MEMBER="`basename \"${TEXT}\" .OS400`"
+ MEMBER="${LIBIFSNAME}/DOCS.FILE/`db2_name \"${MEMBER}\"`.MBR"
+
+ if action_needed "${MEMBER}" "${TEXT}"
+ then CMD="CPY OBJ('${TEXT}') TOOBJ('${MEMBER}') TOCCSID(${TGTCCSID})"
+ CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)"
+ system "${CMD}"
+ fi
+done
+
+
# Build in each directory.
for SUBDIR in include lib src tests