commit: 5bbc24170c922ca97642ac3afd2f7ac896861b5e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Dec 19 07:20:48 2014 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Fri Dec 19 07:20:48 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=5bbc2417
Use OSTYPE instead of uname to determine the system type. * ctags.eselect (do_update): Use OSTYPE bash variable instead of uname to determine the system type, in order to be consistent with eselect proper. --- ChangeLog | 4 ++++ ctags.eselect | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9c96e6b..68db727 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2014-12-19 Ulrich Müller <[email protected]> + * ctags.eselect (do_update): Use OSTYPE bash variable instead of + uname to determine the system type, in order to be consistent with + eselect proper. + * etags.eselect.5: New file, includes ctags.eselect man page via "so" request. * Makefile (DISTFILES): Add etags.eselect.5. diff --git a/ctags.eselect b/ctags.eselect index 8384e16..2bfc946 100644 --- a/ctags.eselect +++ b/ctags.eselect @@ -197,7 +197,7 @@ do_update() { remove_symlinks || die -q "Couldn't remove existing symlink" fi elif [[ -e ${EROOT}/usr/bin/${CTAGS} ]]; then - if ! [[ ${CTAGS} = ctags && $(uname) = FreeBSD ]]; then + if ! [[ ${CTAGS} = ctags && ${OSTYPE} = freebsd* ]]; then die -q "${EROOT}/usr/bin/${CTAGS} exists but is not a symlink" fi # On FreeBSD ctags is a real file, installed by freebsd-ubin
