diff options
author | Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> | 2017-07-11 20:59:48 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-12 22:47:52 +0700 |
commit | b88d2f57f08ea61104dfcf05ef6456031b2d41ef (patch) | |
tree | 11dcb1bc6179e843fd367f7e965a358e8fe4cd07 /development/shc/README | |
parent | df40e05546f5f72c73c812dbb27c330bf651661f (diff) | |
download | slackbuilds-b88d2f57f08ea61104dfcf05ef6456031b2d41ef.tar.gz |
development/shc: Updated for version 3.9.6, new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/shc/README')
-rw-r--r-- | development/shc/README | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/development/shc/README b/development/shc/README index ab1e45923f..be04109cc4 100644 --- a/development/shc/README +++ b/development/shc/README @@ -1,8 +1,15 @@ -SHC 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 executable. +shc - Shell script compiler -Use with care. +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. -After installation, try it with - shc -v -r -T -f myscript +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. |