Dirhtml runs well under Wine on most Linux distributions. For Wine installs that don't automatically send .html files to a browser (e.g. "wine index.html" fails), Wine must be properly configured or the web browser set to "winebrowser" or a Windows browser (for example Portable Firefox or Opera). It may also be desirable to choose an appropriate interface font and default text editor (such as Portable Notepad++).
To run dirhtml via a shell script, make a script called "run_dirhtml.sh" (or something else appropriate) with the contents "wine dirhtml.exe", and "chmod +x" the script. A batch file created by dirhtml can be converted to run under Wine by renaming it with an .sh extension, chmod +x'ing it, and inserting "wine " to the start of the file.
A working shell script would look like this: wine "dirhtml.exe" "init_file.init"
In Konsole, it may be necessary to precede the shell script with ./ for it to run (e.g. ./build_html.sh). Once a few shell scripts are running properly, it may be easier to have the .sh's reference generic .init files, then save .init files as needed with F9.