[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 174023db925f220bb2b07f9455fc6c7cee9ce058

Guillaume Rousse guillaume at oberkampf.msr-inria.inria.fr
Thu Sep 24 21:23:19 UTC 2009


The following commit has been merged in the master branch:
commit 174023db925f220bb2b07f9455fc6c7cee9ce058
Author: Guillaume Rousse <guillaume at oberkampf.msr-inria.inria.fr>
Date:   Thu Sep 24 23:23:04 2009 +0200

    set additional variables needed by some completions (man and gcc, notably)

diff --git a/install-completions b/install-completions
index 0cbf4d0..a39c787 100755
--- a/install-completions
+++ b/install-completions
@@ -40,9 +40,18 @@ if [ ! -d $installation_dir ]; then
     exit 1
 fi
 
-# many scripts requires this
+# many scripts require this
 shopt -s extglob
 
+# and some require this also
+UNAME=$(uname -s)
+UNAME=${UNAME/CYGWIN_*/Cygwin}
+
+case $UNAME in
+    Linux|GNU|GNU/*) USERLAND=GNU ;;
+    *) USERLAND=$UNAME ;;
+esac
+
 for script in $completion_dir/*; do
     # reset completion
     complete -r

-- 
bash-completion



More information about the Bash-completion-commits mailing list