Codebase list xapp / da4c9d2
fix "build/install: Make the favorite gtk module's xinit file executable." There is no need for an install script to run chmod -- meson has a built-in option for setting the mode. Eli Schwartz authored 3 years ago Michael Webster committed 3 years ago
3 changed file(s) with 3 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
0 xinitrc_dir = join_paths(get_option('sysconfdir'), 'X11', 'xinit', 'xinitrc.d')
1 filename = '80xapp-gtk3-module.sh'
2
3 install_data([filename],
4 install_dir: xinitrc_dir
0 install_data(['80xapp-gtk3-module.sh'],
1 install_dir: join_paths(get_option('sysconfdir'), 'X11', 'xinit', 'xinitrc.d'),
2 install_mode: 'rwxr-xr-x'
53 )
6
7 meson.add_install_script(join_paths(meson.source_root(), 'meson-scripts', 'module_xinit_fix_perms.py'),
8 xinitrc_dir,
9 filename
10 )
+0
-14
meson-scripts/module_xinit_fix_perms.py less more
0 #!/usr/bin/python3
1
2 import os
3 import sys
4 import subprocess
5
6 if os.environ.get('DESTDIR'):
7 file = "%s/%s/%s" % (os.environ.get('DESTDIR'), sys.argv[1], sys.argv[2])
8 else:
9 file = os.path.join(sys.argv[1], sys.argv[2])
10
11 subprocess.call(['sh', '-c', 'chmod +x %s' % file])
12
13 exit(0)