slackbuilds/development/shc
Giuseppe Di Terlizzi b88d2f57f0 development/shc: Updated for version 3.9.6, new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2017-07-12 22:47:52 +07:00
..
README development/shc: Updated for version 3.9.6, new maintainer. 2017-07-12 22:47:52 +07:00
shc.SlackBuild development/shc: Updated for version 3.9.6, new maintainer. 2017-07-12 22:47:52 +07:00
shc.info development/shc: Updated for version 3.9.6, new maintainer. 2017-07-12 22:47:52 +07:00
slack-desc development/shc: Updated for version 3.9.6, new maintainer. 2017-07-12 22:47:52 +07:00

README

shc - Shell script compiler

SHC is a generic shell script compiler. It takes a script, which is specified on
the command line and produces C source code. The generated source code is then
compiled and linked to produce a stripped binary.

The compiled binary will still be dependent on the shell specified in the first
line of the shell code (i.e shebang: #!/bin/sh or such), thus shc does not
create completely independent binaries.

shc itself is not a compiler such as cc, it rather encodes and encrypts a shell
script and generates C source code with the added expiration capability. It then
uses the system compiler to compile a stripped binary which behaves exactly like
the original script. Upon execution, the compiled binary will decrypt and
execute the code with the shells' -c option.