reformat perms.sh to be esier to re-us as a general chmod tool

This commit is contained in:
Carsten Haitzler 2017-07-22 13:42:22 +09:00
parent 350d6afb47
commit c8c8e6e876
4 changed files with 5 additions and 4 deletions

View File

@ -10,4 +10,5 @@ custom_target(src + '.edj',
install_dir: join_paths(dir_data, proj, 'themes'),
install : true
)
meson.add_install_script('perms.sh')
out = join_paths(dir_data, proj, 'themes', 'default.edj')
meson.add_install_script(chmod, 'a+r', out)

View File

@ -1,3 +0,0 @@
#!/bin/sh
chmod a+r "${DESTDIR}/${MESON_INSTALL_PREFIX}/share/rage/themes/default.edj"

2
meson-chmod.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
chmod "$1" "${DESTDIR}/$2"

View File

@ -9,6 +9,7 @@ base_url = 'https://www.enlightenment.org/about-'
##### convenience variables for later
proj = meson.project_name()
ver = meson.project_version()
chmod = join_paths(meson.source_root(), 'meson-chmod.sh')
##### dependencies
efl_version = '>= 1.19.0'