add-shortcut.tcl: Determine the MSYS root directory without using $INPUTRC
commit26b48ce090ba897a598fc42bf0a8412d5a14fee9
authorbert Dvornik <dvornik+git@gmail.com>
Mon, 19 Apr 2010 21:38:47 +0000 (19 17:38 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 19 Apr 2010 22:02:09 +0000 (20 00:02 +0200)
tree1cefe6fd88129a4b0c9e06ae8b6678a50bd2a549
parenta1934f98db8d60dbe0ace23f304d5ccc3168878f
add-shortcut.tcl: Determine the MSYS root directory without using $INPUTRC

The add-shortcut script has been finding the MSYS root directory based
on the value of the INPUTRC environment variable, based on the
assumption that $INPUTRC is always set to "<root>/etc/inputrc".  But
this may not be the case.  If "$HOME/.inputrc" exists, /etc/profile
will preferentially point $INPUTRC at it.  That will cause the
shortcuts to be generated incorrectly.

There are a few different ways to find the MSYS root; this simply
assumes the root is at ../.. from the script directory.

Signed-off-by: bert Dvornik <dvornik+git@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
share/msysGit/add-shortcut.tcl