首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用dh-make打包bash脚本

用dh-make打包bash脚本
EN

Ask Ubuntu用户
提问于 2015-03-28 15:30:52
回答 1查看 734关注 0票数 1

我已经安装了dh-make,按照此页的建议安装了其他依赖于它的包(我列出了所有可以安装它的软件包,因为我不确定是哪个包安装的):

代码语言:javascript
复制
sudo apt-get install gnupg pbuilder ubuntu-dev-tools bzr-builddeb apt-file

然后用以下方式运行:

代码语言:javascript
复制
dh_make

在我的文件夹所在的目录中,包含我的bash脚本(该文件夹的名称基于模板<packagename>-<version>),但是现在它给了我以下选项:

代码语言:javascript
复制
Type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch?
 [s/i/m/l/k/n]

当我正在打包bash脚本时,如果有的话,我应该选择哪一个呢?这些都是什么意思?

OS信息:

代码语言:javascript
复制
Description:    Ubuntu 14.10
Release:    14.10

包信息:

代码语言:javascript
复制
dh-make:
  Installed: 1.20140617
  Candidate: 1.20140617
  Version table:
 *** 1.20140617 0
        500 http://gb.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
        100 /var/lib/dpkg/status
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-03-28 17:48:40

这些选项的说明都是在man dh_make中提供的:

代码语言:javascript
复制
   Single binary (s)
          The package will generate a single binary .deb  package.  It  is
          the standard case, so if you don't know what to do, choose this.

   Arch-Independent (i)
          The  package  will  generate  a  single  package  that  is arch-
          independent.

   Multiple binary (m)
          The package will generate multiple binary .deb packages from one
          source  package. Choose this for larger packages that need to be
          split.

   Library (l)
          The package will generate at least  two  binaries.  One  library
          package   containing  just  the  lib  in  /usr/lib  and  another
          *-dev_*.deb package containing documentation and C headers.

   Kernel module (k)
          The package will generate a  binary-all  kernel  module  -source
          package for use with the make-kpkg(1) command. It also generates
          a binary package for additional utilities,  daemons,  etc.  that
          may come with the source.

   Kernel patch
          The  package will generate a package that can be used for kernel
          patches.
  • 对于单个程序,您通常使用s,但在您的示例中,它是一个shell脚本,它不依赖于目标系统的体系结构,所以选择i
  • 对于m (多个二进制文件),它将生成多个包(例如各种vim包,它们都是从同一个源包生成的)。
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/602441

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档