Ensure all Shell scripts have Unix line endings

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
update-perl-modules: Use the current Win32::API version

The current official version 0.77 has the MSYS fixes included.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
InnoSetup: Upgrade to version 5.5.5 Unicode

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Fix broken sourceforge link

Signed-off-by: roblabla <robinlambertz.dev@gmail.com>
Add msys-bison to the recommended packages list

Required for compiling msys-bash

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
Rename the script to download mingw-get

As opposed to update-inno-setup.sh, this script does not update a
committed version of mingw-get, but downloads the one and only version.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Refactor common download tools into a shell library

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
installer: Use PowerShell's "tee" to log mingw-get's output to a file

The "%{ \"$_\" }" magic is required to suppress PowerShell's
NativeCommandError output, see [1]. Note that Powershell outputs Unicode
(UCS-2 Little Endian) encoded files.

[1] http://stackoverflow.com/a/12866669/1127485

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
installer: Use suppressible message boxes for silent installations

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
installer: Execute mingw-get with the installation dir as the working dir

This ensures relative paths in post-install actions work as expected.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
readme: Fix Jenkins links to point to Dscho's server

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
ci: Add the Groovy Postbuild script for testing the installer

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
installer: Minor reordering of some statements for clarity

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Add /etc/profile and /etc/inputrc for easier customization

These are the original versions from msys-core-1.0.18.

Signed-off-by: Karsten Blees <blees@dcon.de>
/etc/profile: use /etc/inputrc if ~/.inputrc doesn't exist

The MSYS /etc/profile script copies a default inputrc file into the user's
HOME directory and ignores /etc/inputrc completely.

The average Windows user won't know about inputc anyway, so there's no
point creating personal copies. And users that _do_ know will expect it to
behave as documented [1].

Fix it to use ~/.inputrc if it exists, otherwise fall back to /etc/inputrc.

[1] https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File.html

Signed-off-by: Karsten Blees <blees@dcon.de>
/etc/inputrc: enable Unicode console input

Note: this requires Unicode-enabled msys-core and bash to work.

Signed-off-by: Karsten Blees <blees@dcon.de>
/etc/profile: set HOME to the user's home or profile directory

The MSYS profile script tries to create "/home/$LOGNAME" if HOME is not
set. However, on Windows, a normal user cannot create files or directories
in the installation directory.

Set the HOME variable to $HOMEDRIVE$HOMEPATH if it exists and is a
directory, otherwise to $USERPROFILE. This is how current Git for Windows
shells, TortoiseGit and GitExtensions do it as well.

Picked from msysgit, but dropped the warning line about msysGit issue 108.
The old Goole issue tracker has been deleted, and the issue is fixed by
msys-core patch "msys.dll: basic Unicode support".

Finally, remove the same now redundant logic from "Git Bash.vbs".

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
/etc/profile: start in the current working directory

Do not change the current directory when starting a shell.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
/etc/profile: Set the Git icon as the console window icon

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
update-perl-modules: Do not install Win32::API anymore

Now that we can set the console window icon from within the shell via
escapes code we do not need this anymore to call SetConsoleIcon from Perl.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>