/mksc

Creates a basic script template.

Primary LanguageC

MKSC (MaKe SCript)
------------------

MKSC is a simple C program that creates a basic script template to be
further edited by the user.

It supports most of the popular shells and dynamic language interpreters
out of the box. However, if an interpreter is not directly supported, you can
use the -C or --custom option in order to provide your own (see below).

Usage: mksc [-aAbBcdDeklmpPrtyz] [-C INTERPRETER] FILENAME

Options:
  -a, --ash          Create an Almquist Shell script
  -A, --awk          Create an AWK script
  -b, --sh           Create a Bourne Shell script [DEFAULT]
  -B, --bash         Create a Bourne-Again Shell script
  -c, --csh          Create a C Shell script
  -C INTERPRETER, --custom=INTERPRETER
                     Create a script that uses INTERPRETER as the
                     interpreter. If INTERPRETER is not an absolute
                     path, an attempt to find it in the system's
                     PATH environment variable will be made.
  -d, --dash         Create a Debian Almquist Shell script
  -D, --pdksh        Create a Public Domain Korn Shell script
  -e, --extension    Add proper file extension to FILENAME
  -k, --ksh          Create a Korn Shell script
  -l, --lua          Create a Lua script
  -m, --mksh         Create a MirBSD Korn Shell script
  -p, --perl         Create a Perl script
  -P, --php          Create a PHP script
  -r, --ruby         Create a Ruby script
  -t, --tcsh         Create a TENEX C Shell script
  -y, --python       Create a Python script
  -z, --zsh          Create a Z Shell script
  -?, -h, --help     Display this text and exit
  -v, --version      Display version information and exit

If no script type option is given, `--sh' is assumed.

For example, if you would like to use another version of Python besides your
system's default Python interpreter, you could use something like:

    mksc --custom=python3 mypython3script

MKSC will find the absolute path of the `python3' executable without the user
needing to know where exactly it is.