From 0bdbd254112ef31ff85c484952b70f24c216593a Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 2 May 2025 19:51:40 +0100 Subject: [PATCH] fixing things --- projects/oorexx/jabberwocky.txt | 38 ----------------------- samples/oorexx/synchronousConcurrency.rex | 10 ++++-- 2 files changed, 8 insertions(+), 40 deletions(-) delete mode 100644 projects/oorexx/jabberwocky.txt diff --git a/projects/oorexx/jabberwocky.txt b/projects/oorexx/jabberwocky.txt deleted file mode 100644 index fd03221..0000000 --- a/projects/oorexx/jabberwocky.txt +++ /dev/null @@ -1,38 +0,0 @@ -Jabberwocky - -'Twas brillig, and the slithy toves -Did gyre and gimble in the wabe: -All mimsy were the borogoves, -And the mome raths outgrabe. - -'Beware the Jabberwock, my son! -The jaws that bite, the claws that catch! -Beware the Jubjub bird, and shun -The frumious Bandersnatch!' - -He took his vorpal sword in hand: -Long time the manxome foe he sought -- -So rested he by the Tumtum tree, -And stood a while in thought. - -And, as in uffish thought he stood, -The Jabberwock, with eyes of flame, -Came whiffling through the tulgey wood, -And burbled as it came! - -One two! One two! And through and through -The vorpal blade went snicker-snack! -He left it dead, and with its head -He went galumphing back. - -'And hast thou slain the Jabberwock? -Come to my arms, my beamish boy! -Oh frabjous day! Callooh! Callay!' -He chortled in his joy. - -'Twas brillig, and the slithy toves -Did gyre and gimble in the wabe: -All mimsy were the borogoves, -And the mome raths outgrabe. - -Lewis Carroll diff --git a/samples/oorexx/synchronousConcurrency.rex b/samples/oorexx/synchronousConcurrency.rex index 3640012..357f3da 100755 --- a/samples/oorexx/synchronousConcurrency.rex +++ b/samples/oorexx/synchronousConcurrency.rex @@ -1,4 +1,4 @@ -#!@OOREXX_SHEBANG_PROGRAM@ +#!/usr/bin/env rexx /*----------------------------------------------------------------------------*/ /* */ /* Copyright (c) 2005-2021 Rexx Language Association. All rights reserved. */ @@ -50,7 +50,9 @@ queue = .workqueue~new -- our inputs and outputs -- (we use jabberwocky.txt from the same samples directory) -input = .stream~new(.File~new("jabberwocky.txt", .File~new(.context~package~name)~parent)) +home = SysGetpwnam("gmgauthier", "d") +project_root = home||"/Projects/rexx-things/projects" +input = .stream~new(.File~new(project_root||"/jabberwocky.txt", .File~new(.context~package~name)~parent)) output = .output -- the file reader reads lines from the input stream and writes to @@ -140,3 +142,7 @@ writer = .filewriter~new(output, queue) -- write to the stream stream~lineout(item) end + +EXIT + +::requires "rxunixsys" LIBRARY \ No newline at end of file