Skip to content

Commit 0db5396

Browse files
committed
[OS400] Gives members a type (in H, TOOLS and DOCS physical files)
1 parent 5a82f71 commit 0db5396

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

os400/make.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ do MEMBER="${LIBIFSNAME}/DOCS.FILE/`db2_name \"${TEXT}\"`.MBR"
187187
then CMD="CPY OBJ('${TEXT}') TOOBJ('${MEMBER}') TOCCSID(${TGTCCSID})"
188188
CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)"
189189
system "${CMD}"
190+
system "CHGPFM FILE(${TARGETLIB}/DOCS) MBR(`basename ${TEXT}`) SRCTYPE(TXT)"
190191
fi
191192
done
192193
@@ -221,6 +222,7 @@ do DEST="${SRCPF}/`db2_name \"${HFILE}\"`.MBR"
221222
CMD="CPY OBJ('`pwd`/tmphdrfile') TOOBJ('${DEST}')"
222223
CMD="${CMD} TOCCSID(${TGTCCSID}) DTAFMT(*TEXT) REPLACE(*YES)"
223224
system "${CMD}"
225+
system "CHGPFM FILE(${TARGETLIB}/H) MBR(`basename ${HFILE} .h`) SRCTYPE(H)"
224226
# touch -r "${HFILE}" "${DEST}"
225227
rm -f tmphdrfile
226228
fi
@@ -315,6 +317,7 @@ if action_needed "${SCRIPTDIR}/bndsrc" "${DEST}"
315317
then CMD="CPY OBJ('${SCRIPTDIR}/bndsrc') TOOBJ('${DEST}')"
316318
CMD="${CMD} TOCCSID(${TGTCCSID}) DTAFMT(*TEXT) REPLACE(*YES)"
317319
system "${CMD}"
320+
system "CHGPFM FILE(${TARGETLIB}/TOOLS) MBR(BNDSRC) SRCTYPE(BND)"
318321
# touch -r "${SCRIPTDIR}/bndsrc" "${DEST}"
319322
LINK=YES
320323
fi

0 commit comments

Comments
 (0)