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

⌈⌋ ⎇ branch:  cross package maker


Artifact [88e4e80e83]

Artifact 88e4e80e83017eac45a8153a8c2974bd445007de:

  • File lib/fpm/package/filter_man.rb — part of check-in [06c1480758] at 2014-12-22 12:35:32 on branch trunk — Add missing update(opts) parameter. (user: mario size: 557)


# 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::Filter_man < FPM::Package
  def update(opts=nil)
    ::Dir[staging_path + "/**/man/**/*.[12345678]"].each do |file|
       safesystem("gzip", "-9", file)
    end
  end
end