Skip to content

Conversation

@DarkFleetOne
Copy link

Wrapped script names in an expression that checks the system type and concatenates either .bat or .sh
This allows tests to be run on Windows once the nand2tetris directory is set while preserving the .sh extension as the default.

Wrapped script names in an expression that checks the system type and concatenates either .bat or .sh
(if (eq system-type 'windows-nt)
".bat"
".sh"))
(nand2tetris-tools-dir))))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you consider making a function for this following the naming conventions of this package?


(defun nand2tetris/tests-current-hdl-elsewhere ()
"Run `HardwareSimulator.sh' on current tst file, but on another locaion.
"Run `HardwareSimulator.bat' on current tst file, but in another location.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of the extension name. Can we use this wording instead? Run HardwareSimulator script that way it's agnostic

@CestDiego
Copy link
Owner

@DarkFleetOne Thanks for contributing to this emacs package. I haven't been actively maintaining it but I would love to accept your changes after a few modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants