slackbuilds/development/shc
Andrew Clemons c6f86c4afb
development/shc: Fix DOWNLOAD.
There is a tag and a branch with the same name, so we must
be specific in the URL about which one we want.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-03-18 00:26:11 +07:00
..
README development/shc: Wrap README at 72 columns. 2022-03-12 14:56:29 -05:00
shc.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
shc.info development/shc: Fix DOWNLOAD. 2022-03-18 00:26:11 +07:00
slack-desc

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 shell's -c option.