git-slave for windows

git-slave文档只对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." 

当我尝试下载并运行“nmake install”时,我得到了同样神秘的错误:

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

有没有人有这方面的经验,可以指出我在正确的方向吗?

git-slave的Makefile只用于GNU Make – 因为它是一个相当简单的makefile,所以没有理由不应该使用Microsoft nmake,除了“无偿”使用不支持的Make extensions由微软nmake。 ( gnu make,microsoft nmake和posix标准有什么相似/不同之处?对这些差异有一个很好的总结)。

在gitslave / Makefile的第2-4行,如果用$(前缀)替换$ {prefix},用$(mandir)替换$ {mandir] [实际上用括号替换括号(括号)],nmake不应再扼杀Makefile。 但是,除非你已经安装了一堆POSIX工具或者允许像mkdir -prm -fsed这样的命令,否则修复nmake不兼容性只会允许(最好) make testcheck工作。

没有一个gitslave开发人员能够定期访问Windows开发机器,所以就像文档中所说的那样:“我们接受错误修正,[但是]不能[声明]您可以make安装或检查,或者对此进行质量检查平台。”

我想象一下在windows上使用git-slave的其他人只是确保perl和gitslave以及gitslave依赖的任何POSIX实用程序(例如grep和rm)都安装在PATH的某个地方。

在Windows上,您可以下载并安装免费的unix工具包,其中包括所有必要的程序: https : //sourceforge.net/projects/unxutils/

您还需要一个perl工具包,因为在制作过程中使用了“pod2man”。 而且脚本“gits”是一个perl脚本,由于在第一行(“#!/ usr / bin / perl”)中的“she-bang”指令而在* ix下运行 – 这在Windows上不起作用。

我创建了一个使用我的Perl启动原始脚本的小包装批处理脚本:gits.bat:perl gits%*

希望这可以帮助。