Fixed dosym syntax to install the symlink in the correct location.
Fixed wrapper script conditional to evaluate script call name
correctly.
Closes: https://bugs.gentoo.org/647170
Closes: https://github.com/gentoo/gentoo/pull/7142
Package-Manager: Portage-2.3.19, Repoman-2.3.6
SERVER=/usr/bin/redeclipse_server_linux
CLIENT=/usr/bin/redeclipse_linux
cd /usr/share/redeclipse || exit 1
-[ "$0" = "redeclipse_server" ] && exec $SERVER || exec $CLIENT
+[ "${0##*/}" = "redeclipse_server" ] && exec "${SERVER}" || exec "${CLIENT}"
dodoc readme.txt doc/examples/servinit.cfg
dobin "${FILESDIR}/redeclipse"
- cd /usr/bin || die
- dosym redeclipse redeclipse_server
+ dosym redeclipse /usr/bin/redeclipse_server
}