summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-12-19 08:20:48 +0100
committerUlrich Müller <ulm@gentoo.org>2014-12-19 08:20:48 +0100
commit5bbc24170c922ca97642ac3afd2f7ac896861b5e (patch)
treebe69cc3486a36a53d34a62754c6610f7c03c6039
parentNew etags.eselect.5 file. (diff)
downloademacs-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--ChangeLog4
-rw-r--r--ctags.eselect2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c96e6b..68db727 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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