From e2451c39524b4a957c1b91208208a0c306c10dde Mon Sep 17 00:00:00 2001 From: SFG545 Date: Mon, 16 Mar 2026 23:47:59 -0500 Subject: [PATCH] Fix symlink installation paths for applets and script aliases in meson.build --- meson.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 945d3cf..08a3e41 100644 --- a/meson.build +++ b/meson.build @@ -136,10 +136,10 @@ vx = executable('vx', ) # 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'] meson.add_install_script('sh', '-c', - 'ln -sf vx "$DESTDIR$1/' + name + '"', - '_', get_option('bindir'), + 'ln -sf vx "$MESON_INSTALL_DESTDIR_PREFIX/' + bindir + '/' + name + '"', ) endforeach @@ -174,8 +174,7 @@ endforeach # Install symlinks for script aliases foreach pair : [['zcmp', 'zdiff'], ['zegrep', 'zgrep'], ['zfgrep', 'zgrep']] meson.add_install_script('sh', '-c', - 'ln -sf ' + pair[1] + ' "$DESTDIR$1/' + pair[0] + '"', - '_', get_option('bindir'), + 'ln -sf ' + pair[1] + ' "$MESON_INSTALL_DESTDIR_PREFIX/' + bindir + '/' + pair[0] + '"', ) endforeach