Граф коммитов

1155 Коммитов

Автор SHA1 Сообщение Дата
Steffen Prohaska 2560525a0b WinGit: start HowtoRelease.txt
Eventually HowtoRelease.txt should describe all necessary
steps to create a Windows release. For now it only describes
naming conventions of the Windows installer.
2007-10-17 18:34:43 +02:00
Steffen Prohaska 8afa8dd586 WinGit: verify that documentation is checked out with autocrlf=true
The documentation contain txt files that should contain
the correct line endings on Windows. Therefore they must
be checked out using newline conversion.

This is now checked before copying files.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-17 18:12:52 +02:00
Steffen Prohaska 4d4d139e61 WinGit: start ReleaseNotes.txt
A release should contain some release notes. So here is a
first draft. The ReleaseNotes.txt are placed directly in
the installation directory.

Note, ReleaseNotes.txt is committed _with_ Windows line
endings. The file is likely to be displayed in Notepad.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-17 18:12:47 +02:00
Steffen Prohaska f725caa713 WinGit(Inno): Set HOME only if adding \bin to PATH (not for \cmd)
It is sufficient to set HOME if the user chooses to add \bin to PATH
in order to be able to use Unix tools from the Windows Command Prompt.
Setting HOME is not needed if only \cmd is added because the wrappers
in \cmd set HOME before they execute the wrapped command.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-17 17:09:57 +02:00
Sebastian Schuberth 3f111ed0ec WinGit(Inno): Remove unused variables
This removes two unused string variables that were left-overs from debugging.
2007-10-17 16:06:27 +02:00
Sebastian Schuberth 666eec49ec WinGit(Inno): Set HOME if adding \cmd to PATH
If the user chooses to add \cmd to PATH in order to be able to use Git from
the Windows Command Prompt, HOME needs to be also set because /etc/profile
does not get executed in that case. This patch does this along with
introducing a little more generic methods to alter environment variables.

If HOME was set by the installer and it was not modified, the uninstaller will
remove it again, just like it reverts changes to PATH.
2007-10-17 15:53:50 +02:00
Sebastian Schuberth 2a54698773 WinGit(Inno): Fix environment change broadcast
The changes to PATH were done too late in both the installer and uninstaller,
so the broadcast triggered by ChangesEnvironment=yes came before the actual
change. This has been fixed by changing the environment in earlier installer /
uninstaller steps. As a side effect, the user has to choose how to modify PATH
now before the files get installed.
2007-10-17 12:30:12 +02:00
Sebastian Schuberth 28768a3171 WinGit(Inno): Remove progress for creating built-ins again
The progress bar for creating the built-ins was not really useful as the task
was finished so quickly that the user could not even read what was going on,
which might rather confuse than please users.
2007-10-17 10:05:09 +02:00
Steffen Prohaska 3dbee6836b WinGit(Inno): fix truncation of text in last option on PATH page
The last two characters of the text describing the last option
was truncated. This is fixed now.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-16 23:14:02 +02:00
Steffen Prohaska a16729f75e cmd: simplified command scripts
As suggested by Dimitry Kakurin.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-16 23:14:00 +02:00
Sebastian Schuberth 22051f939b WinGit(Inno): Make uninstaller remove directory from PATH
The uninstaller did not remove the directory Git was installed to from PATH.
It now does, as well as any directories below the installation directory in
PATH. For convenience, this is also done if the directories in PATH were not
added by the installer in the first place, as they will become invalid after
uninstallation anyways.
2007-10-16 19:02:47 +02:00
Sebastian Schuberth 1bb90882ab WinGit(Inno): Remove dependency on modpath.iss
The functionality to modify PATH was rewritten to better suit our needs (e.g.
to be able to first remove all occurrences of the installation directory from
PATH prior to installation). The code was simplified and merged into
install.iss. The drawback is that we lose Win9x support for now which
requires PATH to be set in autoexec.bat.

As briefly mentioned above, all paths that start with the installation path
are now removed from PATH before setting the new PATH as specified by the
user during setup. This avoids wrong PATH settings if a user upgrades or
reinstalls with different PATH settings that for the previous installation.

Moreover, the options if and how to modify PATH were now moved to a separate
wizard page during setup, along with more explaining comments.
2007-10-16 18:35:40 +02:00
Sebastian Schuberth 249e2f499a WinGit(Inno): Add progress page for creating built-ins
At least on non-NTFS systems where built-ins are created by copying files,
this step might take a while for the growing number of built-ins. Therefore,
a new setup wizard page with a progress bar was introduced that informs the
user about the progress of copying files / creating hard links.
2007-10-16 17:52:04 +02:00
Johannes Schindelin 2bab5d1330 /etc/profile: fix check if /cmd/ is in $PATH
The old check was bogus.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-15 21:13:40 +01:00
Johannes Schindelin e9fc6f0497 WinGit: Get rid of old 7-Zip based installer in favour of Inno
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-15 21:13:27 +01:00
Johannes Schindelin c1d4da7b21 WinGit: Use Henrik Nyh's Git logo also for Inno installer
While at it, move the resources into /share/resources.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-15 20:17:45 +01:00
Steffen Prohaska 82a580a752 WinGit: refactored file copying to copy-files.sh
Copying files in preparation for packing them into an installer
is now available as the separate script 'copy-files.sh <tmpdir>'.
The script is used by old WinGit and WinGit (Inno).

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-15 16:56:07 +02:00
Steffen Prohaska 2c9d612a5b cmd support: fix for spaces in paths, resetting old state on exit
This fixes the cmd wrappers for git and gitk to work if
paths contain spaces. And the old state of PATH and HOME
is restored before exit.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-15 15:43:53 +02:00
Steffen Prohaska 56412659cb WinGit: include /cmd/ fixing Windows Command Prompt support
Include /cmd/ directory in setup, which is needed to
execute git from the Windows Command Prompt.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-15 14:46:21 +02:00
Sebastian Schuberth 8777623f90 WinGit(Inno): Make installer optionally modify PATH
By using a helper script, the installer can now optionally modify the current
user's PATH (which will be undone upon uninstall). Options are:

- Not to modify PATH at all,
- add only Git to PATH (i.e. \cmd),
- add Git and UNIX tools to PATH (i.e. \bin and \mingw\bin).

The default is to only add Git to PATH which seems to be the best compromise
between the convenience to be able to use Git from cmd.exe and avoiding
conflicts between programs with matching names (find, sort).
2007-10-15 12:31:36 +02:00
Sebastian Schuberth 431a69ba04 WinGit(Inno): Upgraded to Inno Setup 5.2.1
This upgrade introduces a fix for the uninstaller on Windows Vista. For details
see:

http://www.jrsoftware.org/files/is5-whatsnew.htm
2007-10-15 12:18:14 +02:00
Sebastian Schuberth 7cdd3e4bcc WinGit(Inno): Renamed "Git Shell" shortcuts to "Git Bash"
It seems to be a good idead to be explicit about which "shell" is being used
(esp. as there might be shortcuts later that start Git in a cmd.exe shell
environment). As "Bash" already contains the word "shell", "Git Bash" seems
to be a concise choice.
2007-10-11 14:35:57 +02:00
Sebastian Schuberth 1b506fd16f WinGit(Inno): Be explicit about the uninstall icon
Whereas on some machines the icon listed in the "Change or Remove Programs"
panel seems to automatically match the one of the setup exectuable, there
are some reports that this is not always the case, so again be explicit about
this option.
2007-10-11 14:04:28 +02:00
Sebastian Schuberth b4e0933514 WinGit (Inno): Be explicit about the compression to use
Inno's doc is a little unclear about whether the default is lzma/normal or
lzma/max (see "Compression" docs vs. "InternalCompressLevel" docs), so let's
be explicit.
2007-10-11 13:53:16 +02:00
Steffen Prohaska 5d09a8cd45 WinGit (Inno): fix Git Gui Here by using git-gui wrappers --working-dir
The MINGW wrapper script for git-gui provides a switch
to change the working directory before launching the
original git-gui. Use this command line switch to implement
the Explorer shell extension.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-10 00:50:21 +02:00
Steffen Prohaska 7c00adc8c6 WinGit (Inno): home dir in $USERPROFILE instead of $APPDATA/Git
Defaulting HOME to USERPROFILE is the best option we have:

1) Don't hide git's home from the user because git is not well
   contained but shares data, like ssh keys, or .bashrc.
2) The most obvious default on Windows is USERPROFILE. wish also
   has this default, which makes things easier. git-gui automatically
   has the right HOME.
3) If the user has special needs she can override the default
   by explicitly setting HOME.

See also:
http://groups.google.com/group/msysgit/browse_frm/thread/12807411fc0f2dcf
http://groups.google.com/group/msysgit/browse_frm/thread/aa594775f374ff89

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-08 15:09:43 +02:00
Steffen Prohaska 095e4ef541 WinGit (Inno): Fix git-gui start menu for spaces in install dir
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-08 15:09:42 +02:00
Steffen Prohaska d882816024 WinGit (Inno): lauch git-gui directly, without cmd window
The entry in the start menu and the shell extension directly
use wish to launch git-gui. Note, this requires git-gui to
locate git in the same directory git-gui is installed in,
even if this directory is not in PATH.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-08 15:09:41 +02:00
Sebastian Schuberth 3e7ca4679c WinGit (Inno): Fixed "Git GUI Here" for dirs containing spaces
Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:39 +02:00
Sebastian Schuberth 32ad909d36 WinGit (Inno): Add Git GUI to Start Menu
This commit assumes a Git GUI that can be started from non-work-tree
directories.

Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:38 +02:00
Sebastian Schuberth cd1f5211fa WinGit (Inno): Adjusted shell startup directory to home in $APPDATA
Using "Start in" in the shortcut properties, the shell now opens in
the Git home directory inside $APPDATA.

Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:37 +02:00
Sebastian Schuberth e0c03e9506 WinGit (Inno): Use Inno Setup from share so no installation is required
Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:36 +02:00
Sebastian Schuberth 3a8fc30778 WinGit (Inno): Start shell in user's home
Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:35 +02:00
Steffen Prohaska d61a52025d WinGit (Inno): remove APP_STATUS
If a user wants to add '-alpha' to the version he can do
so by stating it on the command line. No need to maintain
a special status flag in install.iss

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-08 15:09:34 +02:00
Sebastian Schuberth 9427758ba4 WinGit (Inno): Added "Git GUI Here" and minor cleanups
- No need to copy fileList-builtins.txt anymore.
- Added optional "Git GUI Here".
- Excluded more unneeded files (like 7-Zip installer files).
- Changed wording of release script.

Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:33 +02:00
Sebastian Schuberth ece462f81a WinGit (Inno): Inno Setup based installer
To build an Inno Setup based installer run

   /share/WinGit-InnoSetup/release.sh <version>

Note, you must have Inno Setup installed on your system.

The script builds on top of WinGit/release.sh and only
adds the files required by Inno Setup.

Signed-off-by: Sebastian Schuberth <sschuberth@visageimaging.com>
2007-10-08 15:09:32 +02:00
Steffen Prohaska d1dac5d50c profile: if HOME is missing report error and quit
HOME is expected to be there. Either HOME is automatically
set to USERPROFILE or it was set present in the environment.
There's no need to create the directory. If it is missing
there's something fundamentally wrong. Hence, we report an
error and quit.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-08 14:30:34 +02:00
Steffen Prohaska 7b0bfd3fdd profile: normalize HOME to use slashes
This commit normalizes the HOME to match the expectation of
Unix programs. All backslashes are converted to slashes. At
least ssh is know to fail to locate its configuration files
if HOME contains backslashes.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-08 14:28:08 +02:00
Johannes Schindelin e5842e8b0e Move the home directory to $USERPROFILE
Windows users already have a home directory.  We might just as well use
it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-08 14:28:07 +02:00
Steffen Prohaska 3f30b79b69 GitMe: fetch HTML pages in submodule doc/git/html
Note, fetching HTML pages will not work unless master
of msysgit contains the submodule at doc/git/html.
Therefore, we need to first advance master before we
can thoroughly test this commit. I only tested it with
a temporarily hacked setup-msysgit.sh.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-04 23:53:59 +02:00
Steffen Prohaska 495f6919fb WinGit: include html pages from official git.git's html branch
It is assumed that a matching version of the html documentation
is available as the HEAD of /doc/git/html/.git. If not an error
will be reported.

This patch doesn't include a mechanism to fetch the html pages
to /doc/git/html. The html pages should be at the right place,
which can be handled as a submodule of msysgit.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-04 23:51:55 +02:00
Steffen Prohaska f062fad128 html help: add submodule html pointing to Junio's html for 1.5.3
We do not want to generate the html documentation in msysgit
but instead take the autogenerated documentation from Junio's
repo. This avoids having to integrate the complete toolchain
with msysgit.

So register a submodule at path doc/git/html, which points to
the html pages for 1.5.3 (which is our current git version in
msysgit).

To actually checkout the html pages you need to run

   git-submodule init
   git-submodule update doc/git/html

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-04 23:51:54 +02:00
Johannes Schindelin d595ba3c0e GitMe: allow building an installer based on 'devel'
By saying "/share/GitMe/release.sh 0.5=devel tmp devel" you will get an
installer that checks out the "tmp" branch of msysgit.git, and the
"devel" branch of 4msysgit.git.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-04 22:03:45 +01:00
Johannes Schindelin 8a7eb3b524 GitMe: fix installation to a path containing spaces
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-03 19:52:14 +01:00
Johannes Schindelin 5276c871ed GitMe: fix installation of "mob" remote
It had a bogus URL, so it could not work, ever.  The fact that this
has not been found earlier speaks volumes.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-03 19:52:02 +01:00
Johannes Schindelin c1f5365769 GitMe: no more workaround for 4msysgit
We needed to use http transport some time ago, but that is fixed now.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-10-03 19:52:00 +01:00
Steffen Prohaska c8a2c66d1e html help: add submodule html pointing to Junio's html for 1.5.3
We do not want to generate the html documentation in msysgit
but instead take the autogenerated documentation from Junio's
repo. This avoids having to integrate the complete toolchain
with msysgit.

So register a submodule at path doc/git/html, which points to
the html pages for 1.5.3 (which is our current git version in
msysgit).

To actually checkout the html pages you need to run

   git-submodule init
   git-submodule update doc/git/html

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
2007-10-03 15:41:57 +02:00
Steffen Prohaska cc9e931844 WinGit: included /bin/start in the installer
/bin/start is needed to tell Windows to open html pages.
2007-09-29 17:18:57 +02:00
Johannes Schindelin 7e7630e624 Warn about the /cmd path only when necessary
If /cmd is already in the PATH, no need to show the message.

While at it, check for a message-of-the-day, and display it if there is one.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2007-09-25 21:42:54 +01:00
Dmitry Kakurin 5d82e5b5d6 Added instructions on how to use Git from cmd.exe to welcome message
Signed-off-by: Dmitry Kakurin <Dmitry.Kakurin@gmail.com>
2007-09-24 14:28:11 -07:00