Skip to content

Commit

Permalink
Add Boot function 'print_text_file'
Browse files Browse the repository at this point in the history
fix the problem of missing 'cat' utility on Windows
  • Loading branch information
oldk1331 committed Dec 10, 2023
1 parent 10034bd commit 9949128
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-12-10 Qian Yun <[email protected]>

* src/interp/i-systemd.boot: Add Boot function 'print_text_file',
fix the problem of missing 'cat' utility on Windows

2023-12-09 Qian Yun <[email protected]>

* src/interp/setq.lisp, src/interp/g-timer.boot:
Expand Down
14 changes: 10 additions & 4 deletions src/interp/i-syscmd.boot
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,16 @@ withAsharpCmd args ==
--% )copyright -- display copyright notice
summary l ==
OBEY STRCONC ('"cat ", $spadroot, '"/lib/summary")
copyright () ==
OBEY STRCONC ('"cat ", $spadroot, '"/lib/copyright")
print_text_stream stream ==
if stream then
while (str := read_line stream) repeat
SAY str
print_text_file filename ==
handle_input_file(filename, function print_text_stream, [])
summary l == print_text_file STRCONC($spadroot, '"/lib/summary")
copyright() == print_text_file STRCONC($spadroot, '"/lib/copyright")
--% )credits -- display credit list
Expand Down

0 comments on commit 9949128

Please sign in to comment.