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

⌈⌋ branch:  cross package maker


Hex Artifact Content

Artifact 3ac12245a36537105035d6551cf972e6baf0a15b:

  • File Rakefile — part of check-in [9111aeaef0] at 2011-01-04 01:25:06 on branch trunk — - Add gem packaging (user: jls@semicomplete.com size: 304)

0000: 74 61 73 6b 20 3a 64 65 66 61 75 6c 74 20 3d 3e  task :default =>
0010: 20 5b 3a 70 61 63 6b 61 67 65 5d 0a 0a 74 61 73   [:package]..tas
0020: 6b 20 3a 74 65 73 74 20 64 6f 0a 20 20 73 79 73  k :test do.  sys
0030: 74 65 6d 28 22 63 64 20 74 65 73 74 3b 20 72 75  tem("cd test; ru
0040: 62 79 20 61 6c 6c 74 65 73 74 73 2e 72 62 22 29  by alltests.rb")
0050: 0a 65 6e 64 0a 0a 74 61 73 6b 20 3a 70 61 63 6b  .end..task :pack
0060: 61 67 65 20 3d 3e 20 5b 3a 74 65 73 74 2c 20 3a  age => [:test, :
0070: 70 61 63 6b 61 67 65 5f 72 65 61 6c 5d 20 20 64  package_real]  d
0080: 6f 0a 65 6e 64 0a 0a 74 61 73 6b 20 3a 70 61 63  o.end..task :pac
0090: 6b 61 67 65 5f 72 65 61 6c 20 64 6f 0a 20 20 73  kage_real do.  s
00a0: 79 73 74 65 6d 28 22 67 65 6d 20 62 75 69 6c 64  ystem("gem build
00b0: 20 66 70 6d 2e 67 65 6d 73 70 65 63 22 29 0a 65   fpm.gemspec").e
00c0: 6e 64 0a 0a 74 61 73 6b 20 3a 70 75 62 6c 69 73  nd..task :publis
00d0: 68 20 64 6f 0a 20 20 6c 61 74 65 73 74 5f 67 65  h do.  latest_ge
00e0: 6d 20 3d 20 25 78 7b 6c 73 20 2d 74 20 66 70 6d  m = %x{ls -t fpm
00f0: 2a 2e 67 65 6d 7d 2e 73 70 6c 69 74 28 22 5c 6e  *.gem}.split("\n
0100: 22 29 2e 66 69 72 73 74 0a 20 20 73 79 73 74 65  ").first.  syste
0110: 6d 28 22 67 65 6d 20 70 75 73 68 20 23 7b 6c 61  m("gem push #{la
0120: 74 65 73 74 5f 67 65 6d 7d 22 29 0a 65 6e 64 0a  test_gem}").end.