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

This commit is contained in:
Guillaume Rousse 2009-09-24 23:23:04 +02:00
parent f871fe4101
commit 174023db92

View File

@ -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