cmake: Improve the output of install-share.py during installation.

Instead of

    -- Up-to-date: build/install/bin/retdec-getsig
    build/install/share/retdec/support already exists, version is ok
    -- Up-to-date: build/install/bin/retdec-tests-capstone2llvmir

the script now prints

    -- Up-to-date: build/install/bin/retdec-getsig
    -- Up-to-date: build/install/share/retdec/support (version is OK)
    -- Up-to-date: build/install/bin/retdec-tests-capstone2llvmir

which looks much nicer.
This commit is contained in:
Petr Zemek 2019-06-05 10:48:14 +02:00
parent cebf8ee14f
commit cdf863c14e

View File

@ -48,7 +48,7 @@ def main():
version_from_file = version_file.read().split('\n')[0] version_from_file = version_file.read().split('\n')[0]
if version == version_from_file: if version == version_from_file:
print('%s already exists, version is ok' % support_dir) print('-- Up-to-date: %s (version is OK)' % support_dir)
sys.exit(0) sys.exit(0)
else: else:
print('version is not as expected -> replace with the expected version') print('version is not as expected -> replace with the expected version')