Skip to content

v1.0

Latest

Choose a tag to compare

@bergkvist bergkvist released this 09 Sep 13:18
· 7 commits to main since this release

v1.0

Usage

$ source make-binary-wrapper.sh
$ makeBinaryWrapper EXECUTABLE OUT_PATH ARGS

Supported arguments

  • --argv0 NAME: Set name of the executed process to NAME (otherwise it uses the name of the wrapped executable)
  • --set VAR VAL: Add VAR with value VAL to the executable's environment. This will overwrite the variable if it was set already.
  • --set-default VAR VAL: Add VAR with value VAL to the executable's environment - but only if VAR isn't already set in the environment.
  • --unset VAR: Remove VAR from the environment.
  • --add-flags FLAGS: Add FLAGS to the invocation of the executable.
  • --prefix ENV SEP VAL: Prefix an environment variable ENV with VAL, separated by VAL. This is typically useful for prepending to things like the PATH-variable.
  • --suffix ENV SEP VAL: Suffix an environment variable ENV with VAL, separated by VAL. This is typically useful for appending to things like the PATH-variable.