From 9bc8a7e83924679a06864ad7d8357612068e78c6 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Wed, 27 Jun 2018 16:39:56 -0500 Subject: resolved issues with bash parameter expansion in `set_symlinks()` wrt man-page entries --- app-eselect/eselect-luajit/files/luajit.eselect-1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app-eselect/eselect-luajit/files/luajit.eselect-1 b/app-eselect/eselect-luajit/files/luajit.eselect-1 index 62a116d..dae09da 100644 --- a/app-eselect/eselect-luajit/files/luajit.eselect-1 +++ b/app-eselect/eselect-luajit/files/luajit.eselect-1 @@ -24,14 +24,14 @@ remove_symlinks() { set_symlinks() { local ver=$1 - ln -s "${EROOT}"/usr/bin/luajit-$ver "${EROOT}"/usr/bin/luajit + ln -sf "${EROOT}"/usr/bin/luajit-$ver "${EROOT}"/usr/bin/luajit for dir in $(get_libdirs) ; do - ln -s "${dir}"/luajit-{$ver}/libluajit-$LVER.so "${dir}"/libluajit.so - ln -s "${dir}"/luajit-{$ver}/libluajit-$LVER.a "${dir}"/libluajit.a - ln -s "${dir}"/pkgconfig/luajit{-$ver,}.pc + ln -sf "${dir}"/luajit-{$ver}/libluajit-$LVER.so "${dir}"/libluajit.so + ln -sf "${dir}"/luajit-{$ver}/libluajit-$LVER.a "${dir}"/libluajit.a + ln -sf "${dir}"/pkgconfig/luajit{-$ver,}.pc done - for orig in "${EROOT}"/usr/share/man/man1/luajit-$ver.1* ; do - ln -s "${orig}" "${orig//$ver}" + for orig in "${EROOT}"/usr/share/man/man1/luajit*$ver.bz2 ; do + ln -s "${orig}" "${orig//-$ver}" done for f in $HEADER_FILES ; do ln -s "${EROOT}"/usr/include/luajit-$ver/$f "${EROOT}"/usr/include -- cgit v1.2.3-65-gdbad