Bash PS1: refactor code for better readability

Signed-off-by: Benoit Mortgat <mortgat@gmail.com>
Bash PS1: Split up PS1 into small components

Signed-off-by: Benoit Mortgat <mortgat@gmail.com>
Bash PS1: Correctly enclose nonprintable sections

`\[` and `\]` are used for enclosing nonprinting characters in bash PS1.
Enclosing printable characters inside those bracket pairs results in bad
behaviour when the PWD contains characters from an extended character
set (not strictly in ASCII).

Therefore, instead of enclosing big chunks of PS1 inside `\[`...`\]`
pairs, we only put them around the small, non-printable character parts.

Signed-off-by: Benoit Mortgat <mortgat@gmail.com>
Make hacking on Git using an msysGit installer more firewall-friendly

Change the use of the git:// protocol for msysGit submodules to the
https:// protocol, so that developers behind firewalls who have
installed msysGit-netinstall or -fullinstall are not discouraged from
hacking on Git because 'git submodule update' fails to run.  Use the
https:// protocol instead of the http:// protocol so that the
developers are eventually able to push their changes back to origin.
The performance penalty for downgrading from the git:// protocol to the
https:// protocol is minimal, given that msysGit now uses a smart-HTTP-
aware Git.

Signed-off-by: Peter Klavins <klavins@netspace.net.au>
Include the wincred credentials helper in the Git for Windows installer.

Make the git contrib modules _after_ we have made git itself.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Store 32-bit color icons before 8-bit color icons in the file

Tk's "wm iconbitmap" seems to simply use the first 32 x 32 pixel icon it
finds in an icon file, so make sure we use the 32-bit color icon.

Note that this violates the guidelines at

    http://msdn.microsoft.com/en-us/library/ms997636.aspx

which say "The icons should be ordered in increasing color resolution".

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Improve Cygwin path-stripping code

Using awk to strip the Cygwin paths creates a null-byte at the end of the string. This makes the last item in the path unresolvable and causes child processes that are not dependent on msys-1.0.dll to inherit POSIX rather than Windows paths. This routine avoids awk and includes code from nicerobot on StackOverflow: http://stackoverflow.com/a/370255/1127485

Signed-off-by: johnstevenson <john-stevenson@blueyonder.co.uk>
Merge pull request #68 from johnstevenson/devel

Improved cygwin path-stripping code
Revert "Improve Cygwin path-stripping code"

This reverts commit eb648717f20ad28d54ae0d3795346980a9f039f4 as it
replaces spaces in paths in PATH with colons.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Improve Cygwin path-stripping code (fixes issue #67)

Using awk to strip any Cygwin path creates a null-byte at the end of the
string. This makes the last item in the path unresolvable and causes child
processes that are not dependent on msys-1.0.dll to inherit POSIX rather
than Windows paths. Fix this by not using awk at all.

Reported-by: John Stevenson <john-stevenson@blueyonder.co.uk>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Merge pull request #63 from PKRoma/pk/usehttps

Replace git: protocol with more permissive https: protocol to allow use behind firewalls

Thanks for testing the performance!
Make grep in Cygwin path-stripping code case-sensitive for consistency

The previous "case" check already is case-sensitive, so there is no point
in making grep case-insensitive.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Installer: Make it easier to compile the script from the IDE

As it is now required to make changes at more than one place in the code
if we want to compile the script from within the IDE, introduce a define
for easy toggling.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Installer: Delete installed files from VirtualStore (issue #21)

Delete files that are successfully installed from the according
VirtualStore path so that new files do not get superseded by old ones.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
tcltk: updated release script to use 8.5.13 release

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Update tcl to version 8.5.13

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Update tk to version 8.5.13

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Installer: Use sh.exe directly in Git Bash icon if possible (fixes #71).

To avoid side-effects on other cmd.exe windows, point the Git Bash icon
directly to sh.exe on Windows Vista and newer. On 64-bit Windows XP,
launching through 32-bit cmd.exe is required to get sh.exe to launch as
a 32-bit process, but on Windows Vista and newer, this workaround is no
longer required (see commit b6ea386007f0c194bf1e21c057386f639eed831c). On
Windows 8, if a start menu link points to cmd.exe but uses a different
icon, that icon is also used by some other cmd.exe windows, even if the
link has command line parameters. On Windows 7, the side-effect is
different; if the Git Bash link uses cmd.exe, Windows groups Git Bash
together with other cmd.exe windows. By avoiding launching through
cmd.exe when it is not necessary, we avoid affecting the icon used by
other cmd.exe windows.

Signed-off-by: David Matson <gitcoder@outlook.com>
Merge pull request #72 from pointoforder/devel

Don't use cmd for Git Bash link.
Merge branch 'pt/tcltk8513' into devel