问题描述
我正在开发某些脚本和小软件包,我也将其作为debian软件包进行打包。
I'm developing certain scripts and small software packages which I also package as debian packages.
代码保存在git中,我创建了一个新版本的tarball使目标和git档案。然后将此tarball输入到uupdate -u .tar.gz以从以前的打包版本进行更新。这一切都很好,正如我想要的那样。
The code is maintained in git and I create new release tarballs with an make target and git-archive. This tarball is then fed to "uupdate -u .tar.gz" to update from the previous packaged version. This far everything works great and exactly as I want it to.
现在是棘手的部分:我想把包装信息,即debian /(例如mypackage- 0.4.3 / debian / *),也在版本控制下。我只是使用git,但是会破坏dpkg,因为它会在目录中的未知文件发生哭泣。
Now the tricky part: I want to put the packaging information, i.e. everything below debian/ (e.g. mypackage-0.4.3/debian/*), under version control, too. I'd just use git, but that would break dpkg because it would cry about the unknown files in its directory.
我的问题:
将debian /文件夹放置在版本控制下(git)是最简单的方法?
请注意如果可能,我想将源代码和打包信息保存在不同的存储库中。
Please note that I'd like to keep my source code and packaging information in separate repositories, if possible.
推荐答案
请参阅包,它将帮助您直接从上游源git创建包。
See the package git-buildpackage, it will help you create the package directly from the upstream source git.
这篇关于debian包装信息的版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!