1
0
mirror of https://github.com/git/git.git synced 2024-11-19 05:03:55 +01:00
Git Source Code Mirror. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Go to file
Shawn O. Pearce df4ec4cf6f git-gui: Avoid hardcoded Windows paths in Cygwin package files
When we are being built by the Cygwin package maintainers we need to
embed the POSIX path to our library files and not the Windows path.
Embedding the Windows path means all end-users who install our Cygwin
package would be required to install Cygwin at the same Windows path
as the package maintainer had Cygwin installed to.  This requirement
is simply not user-friendly and may be infeasible for a large number
of our users.

We now try to auto-detect if the Tcl/Tk binary we will use at runtime
is capable of translating POSIX paths into Windows paths the same way
that cygpath does the translations.  If the Tcl/Tk binary gives us the
same results then it understands the Cygwin path translation process
and should be able to read our library files from a POSIX path name.

If it does not give us the same answer as cygpath then the Tcl/Tk
binary might actually be a native Win32 build (one that is not
linked against Cygwin) and thus requires the native Windows path
to our library files.  We can assume this is not a Cygwin package
as the Cygwin maintainers do not currently ship a pure Win32 build
of Tcl/Tk.

Reported on the git mailing list by Jurko Gospodnetić.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-02-22 01:38:32 -05:00
lib git-gui: Paper bag fix error dialogs opening over the main window 2008-02-22 01:35:23 -05:00
macosx git-gui: support Git Gui.app under OS X 10.5 2008-02-12 02:34:45 -05:00
po git-gui: Make the statistics of po2msg match those of msgfmt 2008-01-22 23:52:07 -05:00
windows
.gitignore
git-gui.sh git-gui: relax "dirty" version detection 2008-02-19 20:50:29 -05:00
GIT-VERSION-GEN
Makefile git-gui: Avoid hardcoded Windows paths in Cygwin package files 2008-02-22 01:38:32 -05:00