Sha256: 5ac51bc2847c9ef16c98daea89c4b65ffc63bcaa2c20be8ef042cfda715c8ebe
Contents?: true
Size: 645 Bytes
Versions: 6
Compression:
Stored size: 645 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 # rabbitmq-codegen is Python 3 compatible and so is # the code in this repo but Mako still fails with 3.6 as of May 2017 :( MK. python = ENV.fetch("PYTHON", "python2") def sh(*args) system(*args) end extensions = [] spec = "codegen/rabbitmq-codegen/amqp-rabbitmq-0.9.1.json" unless File.exist?(spec) sh "git submodule update --init" end path = "lib/amq/protocol/client.rb" puts "Running '#{python} ./codegen/codegen.py client #{spec} #{extensions.join(' ')} #{path}'" sh "#{python} ./codegen/codegen.py client #{spec} #{extensions.join(' ')} #{path}" if File.file?(path) sh "ruby -c #{path}" end
Version data entries
6 entries across 6 versions & 1 rubygems