-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74233d
commit b41971a
Showing
21 changed files
with
463 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Build GCCLIB | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
#**************************************************# | ||
build-cms: | ||
name: Build for CMS | ||
runs-on: [ubuntu-latest] | ||
container: adriansutherland/vm370:1.4.1 | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Move Source | ||
run: | | ||
mkdir /opt/hercules/vm370/io | ||
mv * /opt/hercules/vm370/io | ||
shell: bash | ||
|
||
- name: Build | ||
working-directory: /opt/hercules/vm370 | ||
run: | | ||
chmod -R ugo+rw * | ||
hercules -f hercules.conf -d >/dev/null 2>/dev/null & | ||
cd io | ||
chmod +x cmsbuild.sh | ||
echo "Running CMSBUILD" | ||
./cmsbuild.sh | ||
shell: bash | ||
|
||
- name: Get Executable | ||
run: | | ||
mkdir -p exe | ||
cp /opt/hercules/vm370/io/brexxbin.aws exe | ||
cp /opt/hercules/vm370/io/LICENSE exe | ||
cp /opt/hercules/vm370/io/README.md exe | ||
cp /opt/hercules/vm370/io/cmsinstall.sh exe | ||
cp /opt/hercules/vm370/io/changelog.txt exe | ||
chmod -R ugo+r exe | ||
shell: bash | ||
|
||
- name: Upload Executable | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: BREXX | ||
path: ./exe | ||
|
||
#**************************************************# | ||
release: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
name: Release | ||
needs: [build-cms] | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Get CMS binary | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: BREXX | ||
|
||
- name: ZIP CMS binary | ||
run: | ||
zip -r BREXX.zip BREXX | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: true | ||
prerelease: true | ||
|
||
- name: Upload Release Asset - CMS | ||
id: upload-release-asset-CMS | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./BREXX.zip | ||
asset_name: BREXX.zip | ||
asset_content_type: application/zip |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
BREXX CMS Change LOG | ||
==================== | ||
|
||
2.1.9 - 22 Feb 2020 | ||
F0001 - Automated Build and Install | ||
|
||
<=2.1.8 - Prehistory Versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/bin/sh | ||
# Make BREXX on CMS | ||
|
||
# Exit if there is an error | ||
set -e | ||
|
||
# IPL | ||
herccontrol -v | ||
herccontrol "ipl 141" -w "USER DSC LOGOFF AS AUTOLOG1" | ||
herccontrol "/cp start c" -w "RDR" | ||
|
||
# LOGON CMSUSER | ||
herccontrol "/cp disc" -w "^VM/370 Online" | ||
herccontrol "/logon cmsuser cmsuser" -w "^CMS VERSION" | ||
herccontrol "/" -w "^Ready;" | ||
|
||
# Read/Send TATA TXT | ||
yata -c | ||
herccontrol -m >tmp; read mark <tmp; rm tmp | ||
echo "USERID CMSUSER\n:READ YATA TXT " > tmp | ||
cat yata.txt >> tmp | ||
netcat -q 0 localhost 3505 < tmp | ||
rm tmp | ||
herccontrol -w "HHCRD012I" -f $mark | ||
herccontrol "/" -w "RDR FILE" | ||
herccontrol "/read *" -w "^Ready;" | ||
|
||
# Build | ||
herccontrol "/yata -x -d f" -w "^Ready;" | ||
herccontrol "/erase yata txt a" -w "^Ready;" | ||
herccontrol "/mkbrexx" -w "^Ready;" | ||
herccontrol "/rename * * e = = e2" -w "^Ready;" | ||
|
||
# Sanity test | ||
herccontrol "/copy * * e = = a" -w "^Ready;" | ||
herccontrol "/copy sysprof exec s = = a" -w "^Ready;" | ||
herccontrol "/ipl cms" -w "^CMS VERSION" | ||
herccontrol "/" -w "^Ready;" | ||
herccontrol "/rexxtry" -w "^Rexxtry;" | ||
herccontrol "/parse version myver" -w "^Rexxtry;" | ||
herccontrol "/say myver" -w "^Rexxtry;" | ||
herccontrol "/exit" -w "^Ready;" | ||
|
||
# Make and load Tape | ||
herccontrol "/cp disc" -w "^VM/370 Online" | ||
herccontrol "/logon operator operator" -w "RECONNECTED AT" | ||
hetinit -n -d brexxbin.aws | ||
herccontrol "devinit 480 io/brexxbin.aws" -w "^HHCPN098I" | ||
herccontrol "/attach 480 to cmsuser as 181" -w "TAPE 480 ATTACH TO CMSUSER" | ||
herccontrol "/cp disc" -w "^VM/370 Online" | ||
|
||
# Write to tape | ||
herccontrol "/logon cmsuser cmsuser" -w "RECONNECTED AT" | ||
herccontrol "/begin" | ||
herccontrol "/tape dump * * e" -w "^Ready;" | ||
herccontrol "/detach 181" -w "^Ready;" | ||
|
||
# Clean Up | ||
herccontrol "/erase brexx * a" -w "^Ready;" | ||
herccontrol "/erase rexxtry exec a" -w "^Ready;" | ||
herccontrol "/erase sysprof exec a" -w "^Ready;" | ||
|
||
# LOGOFF | ||
herccontrol "/logoff" -w "^VM/370 Online" | ||
|
||
# SHUTDOWN | ||
herccontrol "/logon operator operator" -w "RECONNECTED AT" | ||
herccontrol "/shutdown" -w "^HHCCP011I" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/bin/sh | ||
# Install BREXX on CMS | ||
|
||
# Exit if there is an error | ||
set -e | ||
|
||
# IPL | ||
herccontrol -v | ||
herccontrol "ipl 141" -w "USER DSC LOGOFF AS AUTOLOG1" | ||
|
||
# LOGON MAINT AND READ TAPE | ||
herccontrol "/cp disc" -w "^VM/370 Online" | ||
herccontrol "/logon maint cpcms" -w "^CMS VERSION" | ||
herccontrol "/" -w "^Ready;" | ||
herccontrol "devinit 480 io/brexxbin.aws" -w "^HHCPN098I" | ||
herccontrol "/attach 480 to maint as 181" -w "TAPE 480 ATTACH" | ||
|
||
# MAINT 19D DISK | ||
herccontrol "/access 19D z" -w "^Ready;" | ||
herccontrol "/tape load * helpcmd z" -w "^Ready;" | ||
herccontrol "/tape rew" -w "^Ready;" | ||
herccontrol "/tape load * helpcmd2 z" -w "^Ready;" | ||
herccontrol "/tape rew" -w "^Ready;" | ||
herccontrol "/release z" -w "^Ready;" | ||
|
||
# MAINT 19E DISK | ||
herccontrol "/access 19E z" -w "^Ready;" | ||
herccontrol "/tape load rexxtry exec z" -w "^Ready;" | ||
herccontrol "/tape rew" -w "^Ready;" | ||
herccontrol "/release z" -w "^Ready;" | ||
|
||
# MAINT 190 CMS SYSTEM DISK | ||
herccontrol "/access 190 z" -w "^Ready;" | ||
herccontrol "/tape load brexx module z" -w "^Ready;" | ||
herccontrol "/tape rew" -w "^Ready;" | ||
herccontrol "/tape load brexx text z" -w "^Ready;" | ||
herccontrol "/tape rew" -w "^Ready;" | ||
herccontrol "/release z" -w "^Ready;" | ||
|
||
# Done with tape | ||
herccontrol "/detach 181" -w "^Ready;" | ||
|
||
# Regenerate System | ||
herccontrol "/define storage 16m" -w "^CP ENTERED" | ||
herccontrol "/ipl 190" -w "^CMS VERSION" | ||
herccontrol "/access ( noprof" -w "^Ready;" | ||
herccontrol "/access 093 b" -w "^Ready;" | ||
herccontrol "/access 193 c" -w "^Ready;" | ||
herccontrol "/cmsxgen f00000 cmsseg" -w "^Ready;" | ||
herccontrol "/ipl 190" -w "^CMS VERSION" | ||
herccontrol "/savesys cms" -w "^CMS VERSION" | ||
herccontrol "/" -w "^Ready;" | ||
herccontrol "/logoff" -w "^VM/370 Online" | ||
|
||
# LOGON CMSUSER | ||
herccontrol "/logon cmsuser cmsuser" -w "^CMS VERSION" | ||
herccontrol "/" -w "^Ready;" | ||
|
||
# Sanity test | ||
herccontrol "/rexxtry" -w "^Rexxtry;" | ||
herccontrol "/parse version myver" -w "^Rexxtry;" | ||
herccontrol "/say myver" -w "^Rexxtry;" | ||
herccontrol "/exit" -w "^Ready;" | ||
|
||
# LOGOFF | ||
herccontrol "/logoff" -w "^VM/370 Online" | ||
|
||
# SHUTDOWN | ||
herccontrol "/logon operator operator" -w "RECONNECTED AT" | ||
herccontrol "/shutdown" -w "^HHCCP011I" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
REM Copy and build source files to VM370 | ||
yata -c -f tmp.txt | ||
echo USERID CMSUSER > yata.txt | ||
echo :READ YATA TXT >> yata.txt | ||
type tmp.txt >> yata.txt | ||
docker cp yata.txt vm370:/opt/hercules/vm370/io | ||
erase yata.txt | ||
erase tmp.txt | ||
docker exec vm370 bash -c "cd /opt/hercules/vm370/io && yata -x" | ||
docker exec vm370 bash -c "rm /opt/hercules/vm370/io/yata.txt" | ||
|
||
docker cp cmsbuild.sh vm370:/opt/hercules/vm370/io | ||
docker exec vm370 bash -c "cd /opt/hercules/vm370/io && ./cmsbuild.sh" | ||
|
||
docker cp cmsinstall.sh vm370:/opt/hercules/vm370/io | ||
docker exec vm370 bash -c "cd /opt/hercules/vm370/io && ./cmsinstall.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.