Git slave for windows

git -slave has only the following invalid comment regarding installation on Windows:

* Limited windows support Multiple users have been successful in using gitslave with Windows. This is "supported" only in the sense that people have reported it to work and we accept bugfixes, not that you can `make` install or check, or that it is QAed on this platform prior to release." 

When I try to download and run "nmake install", I get an equally cryptic error:

 makefile(2) : fatal error U1001: syntax error : illegal character '{' in macro Stop. 

Does anyone have any experience with this and can point me in the right direction?

+4
source share
2 answers

The Makefile for git-slave was used only with GNU Make - since it is a fairly simple make file, there is no reason why it should not work with Microsoft nmake, except for the "free" use of the Make extension, which is not supported by Microsoft nmake. ( How similar / different are gnu make, microsoft nmake and posix standard make? Has a good summary of the differences).

In lines 2-4 of gitslave / Makefile, if you replace $ {prefix} with $ (prefix) and $ {mandir} with $ (mandir) [essentially, replace the brackets with brackets (brackets)] nmake should no longer choke in the Makefile . However, if you did not install a bunch of POSIX utilities or something that allows you to work with commands such as mkdir -p , rm -f and sed , fixing nmake incompatibilities would allow (at best) make testcheck to work.

None of the gitslave developers have regular (?) Access to the Windows development machines, so, as the documentation says, “we accept corrections, [but we do not] [request] that you can make install or check, or that it is QAed on this platform. "

I assume that other people who used git-slave on windows just made sure that Perl and gitslave and any POSIX utilities that gitslave depends on (e.g. grep and rm) are installed somewhere in PATH.

+4
source

On Windows, you can download and install a free set of unix tools, including all the necessary programs: https://sourceforge.net/projects/unxutils/

You also need the perl toolkit because the make process uses "pod2man". In addition, the "gits" script "is a perl script that runs under * ix due to the" she-bang "instruction on the first line (" #! / Usr / bin / perl ") - this does not work on Windows.

I created small batch shell scripts that use my perl to run the original script: gits.bat: perl gits% *

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1433308/


All Articles