Skip to content

Commit

Permalink
Merge pull request #1925 from zowe/users/onno/1919-html
Browse files Browse the repository at this point in the history
SMP/E install HTM is missing the prereqs list in the ACCEPT job
  • Loading branch information
OnnoVdT authored Jan 28, 2021
2 parents 554439a + 768b9d4 commit 4e2eee5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
6 changes: 4 additions & 2 deletions smpe/bld/ptf.readme.htm
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ <H3><A name="acpt">Perform SMP/E ACCEPT for the prerequisites</A></H3>
//SMPCNTL DD *
SET BOUNDARY(<STRONG>#dzone</STRONG>) .
ACCEPT SELECT(
<!--cut11-->
#pre
<!--cut12-->
) REDO COMPRESS(ALL) BYPASS(HOLDSYS,HOLDERROR).
//*
</PRE>
Expand All @@ -191,9 +193,9 @@ <H3><A name="smpe">Perform SMP/E RECEIVE and APPLY for the #type</A></H3>
//RECEIVE EXEC PGM=GIMSMP,REGION=0M
//SMPCSI DD DISP=OLD,DSN=&CSI
//SMPPTFIN DD DISP=SHR,DSN=&HLQ..#name1
<!--cut11-->
<!--cut13-->
#dsnreq
<!--cut12-->
<!--cut14-->
//SMPCNTL DD *
SET BOUNDARY(GLOBAL) .
RECEIVE SELECT(
Expand Down
27 changes: 22 additions & 5 deletions smpe/bld/smpe-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -775,13 +775,13 @@ done # for f
test -f $ptf/$readme.PRE || _cmd --save $ptf/$readme.PRE echo none
test -f $ptf/$readme.SUP || _cmd --save $ptf/$readme.SUP echo none

# add list of PRE sysmods (replace , with blank so broswer can reformat)
# add list of PRE sysmods (replace , with blank so browser can reformat)
_cmd --save $log/$html sed "s/,/ /g" $ptf/$readme.PRE

# append next csplit block (xx01 holds PRE placeholder)
_cmd --save $log/$html cat $ptf/xx02

# add list of SUP sysmods (replace , with blank so broswer can reformat)
# add list of SUP sysmods (replace , with blank so browser can reformat)
_cmd --save $log/$html sed "s/,/ /g" $ptf/$readme.SUP

# append next csplit block (xx03 holds SUP placeholder)
Expand Down Expand Up @@ -855,6 +855,7 @@ then
SED="" # substitute characters with special meaning in HTML
SED="$SED;s~<~\&lt;~g" # we assume there is no "~" in the hold data
SED="$SED;s~>~\&gt;~g"
SED="$SED;s~&~\&amp;~g"
_cmd --save $log/$html sed "$SED" $ptf/tmp
else
_cmd --save $log/$html echo none
Expand All @@ -863,6 +864,22 @@ fi #
# append next csplit block (xx09 holds HOLD placeholder)
_cmd --save $log/$html cat $ptf/xx10

# add list of previous PTFs or #pre placeholder to sample ACCEPT job
if test -f $service/$prevPtf
then
# replace placeholder with list of previous PTFs
_cmd cp $service/$prevPtf $ptf/xx11
# create formatted $ptf/$readme.ACPT (ignore updates to $ptf/xx11)
_formatPreSupReq ACPT $ptf/xx11
else # no previous PTFs, stage the original placeholder
_cmd cp $ptf/xx11 $ptf/$readme.ACPT
fi #
# add list or placeholder (replace , with blank so browser can reformat)
_cmd --save $log/$html sed "s/,/ /g" $ptf/$readme.ACPT

# append next csplit block (xx11 holds PRE placeholder)
_cmd --save $log/$html cat $ptf/xx12

# add a requisite data set names to RECEIVE SMPPTFIN (sysmod 2 and up)
test "$debug" && echo "while read -r trk name"
while read -r trk name
Expand All @@ -873,8 +890,8 @@ do
_cmd --save $log/$html echo "// DD DISP=SHR,DSN=&HLQ..$name"
done < $ptf/$tracksCoreq # while read # all but first sysmod

# append next csplit block (xx11 holds DSN placeholder)
_cmd --save $log/$html cat $ptf/xx12
# append next csplit block (xx13 holds DSN placeholder)
_cmd --save $log/$html cat $ptf/xx14

# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Expand Down Expand Up @@ -903,7 +920,7 @@ _sed $log/$html

# no longer needed
_cmd rm -f $ptf/$tracksCoreq $ptf/$readme $ptf/xx* $ptf/tmp
_cmd rm -f $ptf/$readme.PRE $ptf/$readme.SUP
_cmd rm -f $ptf/$readme.PRE $ptf/$readme.SUP $ptf/$readme.ACPT

test "$debug" && echo "< _readme"
} # _readme
Expand Down

0 comments on commit 4e2eee5

Please sign in to comment.