TSE for Linux: sc32: How to bulk or batch compile all the TSE .s or .si files in a given directory recursively from the Linux WSL command line?

3 views
Skip to first unread message

knud van eeden

unread,
Jun 4, 2025, 7:28:29 AM6/4/25
to SemWare TSE Pro Text Editor
 Q. TSE for Linux: sc32: How to bulk or batch compile all the TSE .s or .si files in a given directory recursively from the Linux WSL command line?

Goal: You want e.g. to quickly check if your Microsoft Windows TSE macros compile also on Linux WSL.

1. -First create a temporary directory for your Linux files in Microsoft Windows

     md <yourtargetdirectory>

     E.g.

      md c:\temp\tse_linux\knud\

2. -Then in Microsoft Windows copy all the .s and .si files from your main working Microsoft Windows source directory to the Linux target directory

     copy <yoursourcedirectoryfiles> <yourtargetdirectory> /s

      E.g.

       copy f:\yourworkingdirectory\*.s c:\temp\tse_linux\knud\ /s

       copy f:\yourworkingdirectory\*.si c:\temp\tse_linux\knud\ /s

3. -The TSE .s and .si files are located in the Linux WSL directory

     <yourtargetdirectory>

      E.g.

       /mnt/c/temp/tse_linux/knud

4. -sc32 is located in the Linux WSL directory

     <pathtoyouryoursc32>

      E.g.

       /mnt/c/temp/tse_linux/tse/sc32

5. -Now execute on the Linux WSL command line sc32 recursively on all the files in the directory

     In general:

      find <yourtargetdirectory> -type f -name "<yourfiles>" -exec <pathtoyourcommandtoexecute> {} \;

       E.g.

        find /mnt/c/temp/tse_linux/knud -type f -name "*.s" -exec /mnt/c/temp/tse_linux/tse/sc32 {} \;

       or redirect the compile output to a file (e.g. ddd.txt). Note: that will take longer time waiting if having to compile many files.

         find /mnt/c/temp/tse_linux/knud -type f -name "*.s" -exec /mnt/c/temp/tse_linux/tse/sc32 {} \; >ddd.txt

         find /mnt/c/temp/tse_linux/knud -type f -name "*.si" -exec /mnt/c/temp/tse_linux/tse/sc32 {} \; >>ddd.txt

6. -Edit the resulting log file (e.g. ddd.txt or foobar.txt) and
    evaluate and or fix any issues where applicable in the
    corresponding TSE macros .s or .si files..

7. -That will show a screen output similar to the following:

--- cut here: begin --------------------------------------------------

...

File: /mnt/c/temp/tse_linux/knud/tseshilf.s
Compiling.....
Writing output to file '/mnt/c/temp/tse_linux/knud/tseshilf.mac'
SAL Compiler V4.50 - 2024 Oct 26 (12405)
Copyright 1991-2024 SemWare. All rights reserved worldwide.

File: /mnt/c/temp/tse_linux/knud/tsestart.s
Compiling....
Writing output to file '/mnt/c/temp/tse_linux/knud/tsestart.mac'
SAL Compiler V4.50 - 2024 Oct 26 (12405)
Copyright 1991-2024 SemWare. All rights reserved worldwide.

File: /mnt/c/temp/tse_linux/knud/tsetrbfo.s
Compiling...................................................
Writing output to file '/mnt/c/temp/tse_linux/knud/tsetrbfo.mac'
SAL Compiler V4.50 - 2024 Oct 26 (12405)
Copyright 1991-2024 SemWare. All rights reserved worldwide.

File: /mnt/c/temp/tse_linux/knud/tsetrbke.s
Compiling.....................
Writing output to file '/mnt/c/temp/tse_linux/knud/tsetrbke.mac'
SAL Compiler V4.50 - 2024 Oct 26 (12405)
Copyright 1991-2024 SemWare. All rights reserved worldwide.

File: /mnt/c/temp/tse_linux/knud/tsetrbpr.s
Compiling..................
Writing output to file '/mnt/c/temp/tse_linux/knud/tsetrbpr.mac'
SAL Compiler V4.50 - 2024 Oct 26 (12405)
Copyright 1991-2024 SemWare. All rights reserved worldwide.

...

--- cut here: end ----------------------------------------------------

8. -Tested successfully on Linux WSL Ubuntu

with friendly greetings
Knud van Eeden
Reply all
Reply to author
Forward
0 new messages