mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Hack to fix running GNUstep.sh under zsh
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@19522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f1da12f82
commit
90e5e247ac
2 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue Jun 15 09:49:16 2004 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* GNUstep.sh.in: Detect if we're running under zsh, and if so, if
|
||||
the shwordsplit option is not set, set it for the duration of the
|
||||
script, then restore it to its original value at the end. This
|
||||
seems to fix setting the paths on zsh.
|
||||
|
||||
2004-06-14 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* GNUmakefile.in (uninstall): Remove all installed files (still
|
||||
|
|
|
@ -55,6 +55,19 @@
|
|||
# which always returns success whatever command returns.
|
||||
#
|
||||
|
||||
# If we're running in zsh (auch!) make sure we're using -y
|
||||
# (SH_WORD_SPLIT) else our path manipulations won't work.
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
|
||||
# If -y is not already set, set it and remember that we
|
||||
# need to set it back to what it was at the end.
|
||||
if ( setopt | grep shwordsplit > /dev/null ); then :; else
|
||||
set -y
|
||||
GS_ZSH_NEED_TO_RESTORE_SET=yes
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Set the GNUstep system root and local root
|
||||
#
|
||||
|
@ -318,3 +331,6 @@ else
|
|||
fi
|
||||
unset TDIR
|
||||
|
||||
if [ -n "$GS_ZSH_NEED_TO_RESTORE_SET" ]; then
|
||||
set +y
|
||||
fi
|
Loading…
Reference in a new issue