2015-11-11 01:30:01 +00:00
|
|
|
#!/usr/bin/env bash
|
2015-11-16 19:21:57 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#
|
2015-11-11 01:30:01 +00:00
|
|
|
|
|
|
|
# Managed code doesn't need 'x'
|
|
|
|
find . -type f -name "*.dll" | xargs chmod 644
|
|
|
|
find . -type f -name "*.exe" | xargs chmod 644
|
|
|
|
|
|
|
|
# Generally, dylibs and sos have 'x' (no idea if it's required ;))
|
|
|
|
if [ "$(uname)" == "Darwin" ]; then
|
|
|
|
find . -type f -name "*.dylib" | xargs chmod 755
|
|
|
|
else
|
|
|
|
find . -type f -name "*.so" | xargs chmod 755
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Executables (those without dots) are executable :)
|
|
|
|
find . -type f ! -name "*.*" | xargs chmod 755
|