Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.4 KB

README.md

File metadata and controls

61 lines (38 loc) · 1.4 KB

mkx

mkx 3.0.0

USAGE: mkx [-bhsvx] [-i <interpreter>] [-t <template>] <scriptfile>

Make new shell script executable file from template.

OPTIONS:

	-b        Only write a bare script with only the shebang line, without template.
	          If output file already exists, make it executable.

	-h        Show this help screen.

	-i        Specify interpreter in shebang line. Implies -b.

	-s        Use /bin/sh as interpreter. Implies -b.

	-t        Specify template file. If not specified, uses 'default'.

	-v        Show script name and version number.

Installation

Repo Clone

git clone https://github.com/remino/mkx
cd mkx
./mkx

Homebrew

brew install remino/remino/mkx
./mkx

Formerly mksh

As the name mksh is more commonly associated with the MirBSD Korn Shell, this repo has been renamed from mksh to mkx. The same goes for the namesake script within.

Invoking mksh with mkx used to be the equivalent of mksh -b or mksh -i <interpreter>. But the with this name change, mkx was now made to work like mksh.

Tests

Tests are written in Bats.

To run them, install Bats and run bats tests in the project root directory.