From 04888b97bc4508bec90ddde90a3eab59c3befd18 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 9 Dec 2022 16:29:12 +0100 Subject: [PATCH] sat #32672: add post_script key for boost and hdf5 --- products/boost.pyconf | 1 + products/hdf5.pyconf | 1 + products/post_scripts/fix_permissions.sh | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100755 products/post_scripts/fix_permissions.sh diff --git a/products/boost.pyconf b/products/boost.pyconf index a191dd2..23f0703 100644 --- a/products/boost.pyconf +++ b/products/boost.pyconf @@ -25,6 +25,7 @@ default : incremental : "yes" single_install_dir : "yes" } + post_script: 'fix_permissions.sh } default_win : diff --git a/products/hdf5.pyconf b/products/hdf5.pyconf index 443bbde..14a62f4 100755 --- a/products/hdf5.pyconf +++ b/products/hdf5.pyconf @@ -27,6 +27,7 @@ default : incremental : "yes" single_install_dir : "yes" } + post_script: 'fix_permissions.sh } default_Autotools : diff --git a/products/post_scripts/fix_permissions.sh b/products/post_scripts/fix_permissions.sh new file mode 100755 index 0000000..2bad9d5 --- /dev/null +++ b/products/post_scripts/fix_permissions.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +echo "changing permissions..." +cd $PRODUCT_INSTALL +find . -type d | xargs chmod ugo+rx +find . -name \*.py | xargs chmod ugo+r +find . -type f -perm 640 | xargs chmod ugo+r +find . -type d -perm 700 | xargs chmod ugo+rx +find . -type f -perm 700 | xargs chmod ugo+r +find . -type f -perm 750 | xargs chmod uo+rx -- 2.39.2