debian 打包信息的版本控制 [英] Versioning of debian packaging Information

查看:45
本文介绍了debian 打包信息的版本控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发某些脚本和小软件包,我也将它们打包为 debian 包.

I'm developing certain scripts and small software packages which I also package as debian packages.

代码在 git 中维护,我使用 make 目标和 git-archive 创建新的发布 tarball.然后将此 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-buildpackage,它将帮助您直接从上游源git创建包.

See the package git-buildpackage, it will help you create the package directly from the upstream source git.

这篇关于debian 打包信息的版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆