Fix symlink installation paths for applets and script aliases in meson.build

This commit is contained in:
2026-03-16 23:47:59 -05:00
parent 696cb27313
commit e2451c3952
+3 -4
View File
@@ -136,10 +136,10 @@ vx = executable('vx',
) )
# Create symlinks for all applets pointing to the vx binary # Create symlinks for all applets pointing to the vx binary
bindir = get_option('bindir')
foreach name : ['patch', 'diff', 'cmp', 'diff3', 'sdiff', 'which', 'gzip', 'gunzip', 'zcat', 'uncompress', 'grep', 'egrep', 'fgrep', 'rgrep', 'find', 'xargs'] foreach name : ['patch', 'diff', 'cmp', 'diff3', 'sdiff', 'which', 'gzip', 'gunzip', 'zcat', 'uncompress', 'grep', 'egrep', 'fgrep', 'rgrep', 'find', 'xargs']
meson.add_install_script('sh', '-c', meson.add_install_script('sh', '-c',
'ln -sf vx "$DESTDIR$1/' + name + '"', 'ln -sf vx "$MESON_INSTALL_DESTDIR_PREFIX/' + bindir + '/' + name + '"',
'_', get_option('bindir'),
) )
endforeach endforeach
@@ -174,8 +174,7 @@ endforeach
# Install symlinks for script aliases # Install symlinks for script aliases
foreach pair : [['zcmp', 'zdiff'], ['zegrep', 'zgrep'], ['zfgrep', 'zgrep']] foreach pair : [['zcmp', 'zdiff'], ['zegrep', 'zgrep'], ['zfgrep', 'zgrep']]
meson.add_install_script('sh', '-c', meson.add_install_script('sh', '-c',
'ln -sf ' + pair[1] + ' "$DESTDIR$1/' + pair[0] + '"', 'ln -sf ' + pair[1] + ' "$MESON_INSTALL_DESTDIR_PREFIX/' + bindir + '/' + pair[0] + '"',
'_', get_option('bindir'),
) )
endforeach endforeach