aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-22 14:41:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-22 14:41:24 +0900
commit3126f103f0d80648418307c52e68fbb9589ce399 (patch)
tree79c64dcca03cbfc3e2ee38aea5db0b569cbddd45 /config
parentadd build dir to ignore (diff)
downloadenlightenment-3126f103f0d80648418307c52e68fbb9589ce399.tar.gz
meson - fix config install to install cfg files in right places and perms
cfg files were installed on top of eachother in the wrong directories and they were unreadable by anyone but root (if you sudo make install)... so fix this with my new chmod fixing stuff (yes meson doesnt let you specific permissions for custom targets).
Diffstat (limited to 'config')
-rw-r--r--config/default/meson.build6
-rw-r--r--config/meson.build2
-rw-r--r--config/mobile/meson.build6
-rw-r--r--config/standard/meson.build6
-rw-r--r--config/tiling/meson.build6
5 files changed, 22 insertions, 4 deletions
diff --git a/config/default/meson.build b/config/default/meson.build
index 9f05d508b..8a67ba227 100644
--- a/config/default/meson.build
+++ b/config/default/meson.build
@@ -9,7 +9,11 @@ foreach cd: config_default
command: [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
output: config_default_output[i],
install: true,
- install_dir: dir_config
+ install_dir: join_paths(dir_config, 'default')
)
i += 1
endforeach
+foreach cd: config_default_output
+ out = join_paths(dir_config, 'default', cd)
+ meson.add_install_script(chmod, 'a+r', out)
+endforeach
diff --git a/config/meson.build b/config/meson.build
index 2bad17a21..71ad26a34 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -7,6 +7,8 @@ custom_target('profile.src',
install: true,
install_dir: dir_config
)
+out = join_paths(dir_config, 'profile.cfg')
+meson.add_install_script(chmod, 'a+r', out)
subdir('default')
subdir('mobile')
diff --git a/config/mobile/meson.build b/config/mobile/meson.build
index f21b70f92..411408fd7 100644
--- a/config/mobile/meson.build
+++ b/config/mobile/meson.build
@@ -8,7 +8,7 @@ foreach cd: config_mobile
command: [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
output: config_mobile_output[i],
install: true,
- install_dir: dir_config
+ install_dir: join_paths(dir_config, 'mobile')
)
i += 1
endforeach
@@ -17,3 +17,7 @@ config_dist_mobile = ['enlightenment-mobile.png', 'profile.desktop']
install_data(config_dist_mobile,
install_dir: join_paths(dir_config, 'mobile')
)
+foreach cd: config_mobile_output
+ out = join_paths(dir_config, 'mobile', cd)
+ meson.add_install_script(chmod, 'a+r', out)
+endforeach
diff --git a/config/standard/meson.build b/config/standard/meson.build
index aa85af99a..307ade3f7 100644
--- a/config/standard/meson.build
+++ b/config/standard/meson.build
@@ -27,7 +27,7 @@ foreach cd: config_standard
command: [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
output: config_standard_output[i],
install: true,
- install_dir: dir_config
+ install_dir: join_paths(dir_config, 'standard')
)
i += 1
endforeach
@@ -36,3 +36,7 @@ config_dist_standard = ['enlightenment-standard.png', 'profile.desktop']
install_data(config_dist_standard,
install_dir: join_paths(dir_config, 'standard')
)
+foreach cd: config_standard_output
+ out = join_paths(dir_config, 'standard', cd)
+ meson.add_install_script(chmod, 'a+r', out)
+endforeach
diff --git a/config/tiling/meson.build b/config/tiling/meson.build
index 9de6f849a..d4973b7f8 100644
--- a/config/tiling/meson.build
+++ b/config/tiling/meson.build
@@ -29,7 +29,7 @@ foreach cd: config_tiling
command: [eet, '-e', '@OUTPUT@', 'config', '@INPUT@', '1'],
output: config_tiling_output[i],
install: true,
- install_dir: dir_config
+ install_dir: join_paths(dir_config, 'tiling')
)
i += 1
endforeach
@@ -38,3 +38,7 @@ config_dist_tiling = ['enlightenment-tiling.png', 'profile.desktop']
install_data(config_dist_tiling,
install_dir: join_paths(dir_config, 'tiling')
)
+foreach cd: config_tiling_output
+ out = join_paths(dir_config, 'tiling', cd)
+ meson.add_install_script(chmod, 'a+r', out)
+endforeach