diff options
author | Ulrich Müller <ulm@gentoo.org> | 2014-12-19 08:20:48 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2014-12-19 08:20:48 +0100 |
commit | 5bbc24170c922ca97642ac3afd2f7ac896861b5e (patch) | |
tree | be69cc3486a36a53d34a62754c6610f7c03c6039 | |
parent | New etags.eselect.5 file. (diff) | |
download | emacs-tools-5bbc24170c922ca97642ac3afd2f7ac896861b5e.tar.gz emacs-tools-5bbc24170c922ca97642ac3afd2f7ac896861b5e.tar.bz2 emacs-tools-5bbc24170c922ca97642ac3afd2f7ac896861b5e.zip |
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.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ctags.eselect | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,9 @@ 2014-12-19 Ulrich Müller <ulm@gentoo.org> + * 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 |