build: rename sh_dir variable to rc_shdir

This commit is contained in:
William Hubbs 2021-12-29 15:57:04 -06:00
parent 6e214b2616
commit cab458e27a
2 changed files with 5 additions and 6 deletions

View File

@ -99,6 +99,7 @@ libexecdir = rootprefix / libexecdir
rc_libexecdir = libexecdir / 'rc'
rc_bindir = rc_libexecdir / 'bin'
rc_sbindir = rc_libexecdir / 'sbin'
rc_shdir = rc_libexecdir / 'sh'
sbindir = rootprefix / get_option('sbindir')
crypt_dep = []

View File

@ -12,8 +12,6 @@ sh_conf_data.set('SBINDIR', sbindir)
sh_conf_data.set('SHELL', get_option('shell'))
sh_conf_data.set('SYSCONFDIR', get_option('sysconfdir'))
sh_dir = rc_libexecdir / 'sh'
sh = [
'rc-functions.sh',
'rc-mount.sh',
@ -59,19 +57,19 @@ else
endif
install_data(sh,
install_dir : sh_dir)
install_dir : rc_shdir)
foreach file : sh_config
configure_file(input : file,
output : '@BASENAME@',
configuration : sh_conf_data,
install_dir : sh_dir)
install_dir : rc_shdir)
endforeach
foreach file : scripts_config
configure_file(input : file,
output : '@BASENAME@',
configuration : sh_conf_data,
install_dir : sh_dir,
install_dir : rc_shdir,
install_mode : 'rwxr-xr-x')
endforeach
@ -79,6 +77,6 @@ foreach file : scripts_config_os
configure_file(input : file.get(0),
output : file.get(1),
configuration : sh_conf_data,
install_dir : sh_dir,
install_dir : rc_shdir,
install_mode : 'rwxr-xr-x')
endforeach