Fix symlink installation paths for applets and script aliases in meson.build
This commit is contained in:
+3
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user