Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ branch:  cross package maker


Check-in [ca8be4398b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Trivial man page compression post-processor.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ca8be4398b16db668b3762b2ca4d4be8573a486d
User & Date: mario 2014-12-15 15:10:21
Context
2014-12-15
19:26
AppData filter (`-u appdata`) which creates a basic PKG.appdata.xml for distro application centers. check-in: 7827ad9b42 user: mario tags: trunk
15:10
Trivial man page compression post-processor. check-in: ca8be4398b user: mario tags: trunk
14:54
Introduce -u update filters; just reusing package/ infrastructure for now. check-in: b7f092aa04 user: mario tags: trunk
Changes

Added lib/fpm/package/man.rb.

















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# api: fpm
# title: manpage compression
# description: Compresses any man/* pages in the build path
# type: delegate
# category: filter
# version: 0.1
# license: MITL
# 
# Simply compresses any manpages in the build path.
# Only looks for files with uncategorized ….1 / ….5 suffixes.
#

require "fpm/package"
require "fpm/util"

# find manpages, compress them
class FPM::Package::Man < FPM::Package
  def update
    ::Dir[staging_path + "/**/man/**/*.[12345678]"].each do |file|
       safesystem("gzip", "-9", file)
    end
  end
end