加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows的git-slave

发布时间:2020-12-14 03:52:42 所属栏目:Windows 来源:网络整理
导读:git-slave文档只有以下关于 Windows上安装的不太有用的注释: * Limited windows supportMultiple users have been successful in using gitslave with Windows.This is "supported" only in the sense that people have reported it towork and we accept b
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扩展由微软nmake. ( How similar/different are gnu make,microsoft nmake and posix standard make?对差异有很好的总结).

在gitslave / Makefile的第2-4行,如果用$(前缀)替换${prefix}而用$(mandir)替换${mandir} [基本上用括号替换括号(括号)] nmake不应再在Makefile上阻塞.但是,除非您安装了一堆POSIX实用程序或允许mkdir -p,rm -f和sed等命令工作的东西,否则修复nmake不兼容性只会允许(充其量)使testcheck工作.

没有任何gitslave开发人员定期(?)访问Windows开发机器,所以像文档说:“我们接受错误修正,[但不] [声称]您可以进行安装或检查,
或者在这个平台上进行QAed.“

我想,在Windows上使用git-slave的其他人只是确保Perl和gitslave以及gitslave所依赖的任何POSIX实用程序(例如grep和rm)安装在PATH的某个地方.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读