Skip to content
/ mkx Public
generated from remino/template

Make new shell script executable file from template

License

Notifications You must be signed in to change notification settings

remino/mkx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Make new shell script executable file from template

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages