Skip to content

Commit

Permalink
new line fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prokushev committed Jul 5, 2024
1 parent bd7a38f commit 8db62f9
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions CMD/choice/patches/fixcase.cmd
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
/* rexx */

parse arg dir

call directory dir

call rename 'SOURCE', 'source'
call directory 'source'
call rename 'CHOICE', 'choice'
call directory 'choice'

call rename 'CHOICE.C', 'choice.c'
call rename 'KITTEN.C', 'kitten.c'
call rename 'KITTEN.H', 'kitten.h'
call rename 'PRF.C', 'prf.c'
call rename 'TALLOC.C', 'talloc.c'
call rename 'TCDUMMY.C', 'tcdummy.c'


exit 0
/* ------------------------------------------ */
rename: procedure
src = arg(1)
dst = arg(2)

parse source os .

if os = 'OS/2' | os = 'DOS' | os = 'WINDOWS' |,
os = 'WINNT' | os = 'WIN32' | os = 'WIN64'
then MV = 'move'
else MV = 'mv'

ret = stream(src, 'c', 'query exists')

if ret \= '' then do
MV' 'src' 'dst'1'
MV' 'dst'1 'dst
end

return
/* ------------------------------------------ */
/* rexx */

parse arg dir

call directory dir

call rename 'SOURCE', 'source'
call directory 'source'
call rename 'CHOICE', 'choice'
call directory 'choice'

call rename 'CHOICE.C', 'choice.c'
call rename 'KITTEN.C', 'kitten.c'
call rename 'KITTEN.H', 'kitten.h'
call rename 'PRF.C', 'prf.c'
call rename 'TALLOC.C', 'talloc.c'
call rename 'TCDUMMY.C', 'tcdummy.c'


exit 0
/* ------------------------------------------ */
rename: procedure
src = arg(1)
dst = arg(2)

parse source os .

if os = 'OS/2' | os = 'DOS' | os = 'WINDOWS' |,
os = 'WINNT' | os = 'WIN32' | os = 'WIN64'
then MV = 'move'
else MV = 'mv'

ret = stream(src, 'c', 'query exists')

if ret \= '' then do
MV' 'src' 'dst'1'
MV' 'dst'1 'dst
end

return
/* ------------------------------------------ */

0 comments on commit 8db62f9

Please sign in to comment.