64 Commits

Author SHA1 Message Date
Petr Zemek
0f1281e536 cmake: Try several alternative commands to compute the SHA-256 hash of the downloaded archive.
The decision is based on what command is available on the system. This makes
the script more universal and requires less actions from the user (e.g.
including 'coreutils' into PATH on macOS).

We try the following commands:
* gsha256sum
* shasum
* sha256sum
2018-03-30 18:41:41 +02:00
Peter Matula
ae34b84cc5 update reference to the retdec support package
the new package contains license as requested in:
https://github.com/avast-tl/retdec-support/issues/1
2018-02-08 18:12:30 +01:00
Peter Matula
4ff0a04ff0 refactor unit tests cmake names, installation dirs, etc. 2018-01-08 14:10:51 +01:00
Petr Zemek
3f5b82abd8 Unify formatting in CMake files. 2018-01-02 12:32:04 +01:00
Petr Zemek
acf6ead232 Remove a forgotten variable from install-share.sh that causes installation to fail (#63).
The variable was left there in a4fb3d42aa3800a062e074f8b076435752ecf637. It
causes the installation to fail with the following error:

    cmake/install-share.sh: 93: install-share.sh: UNPACK_PARAMS: not found
2017-12-21 07:31:39 +01:00
David Manouchehri
d699d3bb70
Added wget flag to reset connection. 2017-12-18 13:12:41 -05:00
Peter Matula
a4fb3d42aa cmake/install-share.sh: bashisms free script -- any shell can be used 2017-12-18 14:35:09 +01:00
Peter Matula
d55a05c3bd update submodules 2017-12-15 16:33:20 +01:00
Peter Matula
fb9b340480 install retdec support to <install_dir>/share/retdec/support
this should solve #12. script no longer clears (rm -rf)
<install_dir>/share, it clears <install_dir>/share/retdec/support.
2017-12-15 13:56:37 +01:00
Petr Zemek
03ea29a27f When installing the decompiler, do not remove the entire share directory (#12).
Remove only the subdirectories and files that are used by RetDec. This should
reduce the chance of unintentionally removing system directories when RetDec is
accidentally installed on Linux into e.g. `/usr` as the `arm`, `generic`, and
`x86` directories are not commonly used by Linux distributions.

Nevertheless, as mentioned in our README, until our build system properly
supports system-wide installations, RetDec should to be installed into a clean,
dedicated directory.
2017-12-13 19:08:53 +01:00
Petr Zemek
bfe50921f1 Unify spaces vs tabs in scripts.
We generally use tabs in scripts, so be consistent.
2017-12-13 14:11:23 +01:00
Petr Zemek
6fef1f21eb Fix the position of ';;' in a case statement in install-share.sh.
We should put it on the same level as the statement.
2017-12-13 14:02:39 +01:00
Petr Zemek
e6491fccc9 Improve OS type detection when running install-share.sh during make install.
We need to also include e.g. "WindowsNT" and "CYGWIN_NT".
2017-12-13 14:00:49 +01:00
Petr Zemek
d9230cbc94 Initial commit. 2017-12-12 18:05:30 +01:00