diff --git a/.gitea/workflows/mvs_job.yaml b/.gitea/workflows/mvs_job.yaml index 859f328..0b0ebd2 100644 --- a/.gitea/workflows/mvs_job.yaml +++ b/.gitea/workflows/mvs_job.yaml @@ -58,7 +58,6 @@ jobs: echo "=== Debug: Starting upload/submit ===" echo "File: ${{ steps.files.outputs.file }}" echo "Member: ${{ steps.files.outputs.member }}" - cd /home/gmgauthier/Retro/mvs/src/ python3 mvs_job.py "${{ steps.files.outputs.file }}" "@05054.SRCLIB.C" "${{ steps.files.outputs.member }}" "COMPILE" echo "=== Debug: Upload/submit complete ===" env: diff --git a/mvs_job.py b/mvs_job.py index e99fd3c..8864f8b 100755 --- a/mvs_job.py +++ b/mvs_job.py @@ -6,8 +6,8 @@ import tempfile import os -SRCLIB = "src/" -JCLLIB = "jcl/" +SRCLIB = "src" +JCLLIB = "jcl" MVSHOST = "oldcomputernerd.com" RDRPORT = 3505 @@ -15,8 +15,9 @@ def upload_source(local_file, dataset_name, member_name, mvshost=MVSHOST): """Upload source code to MVS PDS member""" # Read the source file - filepath = os.path.join(SRCLIB, local_file) - with open(filepath, 'r') as f: + # full path will come from the job runner + # filepath = os.path.join(SRCLIB, local_file) + with open(local_file, 'r') as f: source_lines = f.readlines() # PDS member: Use IEBUPDTE diff --git a/src/SIEVE01.c b/src/SIEVE01.c index caabe00..a491adf 100644 --- a/src/SIEVE01.c +++ b/src/SIEVE01.c @@ -4,8 +4,6 @@ #define PRIMES 1000 // Sieve of Eratosthenes -// Author: Greg Gauthier -// Date: 2016-01-20 int main() { int i,j,numbers[LIMIT];