From: Dickson S. Guedes Date: Wed, 7 Sep 2011 22:48:42 +0000 (-0300) Subject: renaming executable X-Git-Tag: v0.1.3~6 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=b00efa7ffd1138a7736347ee43b0c1f66afe7698;p=pgxn-utils.git renaming executable with this change, after next PGXN client version, you will be able to call pgxn-utils in two ways 1) $ pgxn-utils or 2) $ pgxn utils But you must have pgxnclient installed in you system. --- diff --git a/bin/pgxn-utils b/bin/pgxn-utils new file mode 100755 index 0000000..db0744c --- /dev/null +++ b/bin/pgxn-utils @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby +$:.unshift File.expand_path('..', __FILE__) +$:.unshift File.expand_path('../../lib', __FILE__) +require 'pgxn_utils' + +task = __FILE__.gsub(/pgxn-utils-/,'').gsub(/-/,'_') if File.basename(__FILE__) =~ /^pgxn-utils-/ +command_args = [ task ] + ARGV if task + +puts "PGXN Utils version: #{PgxnUtils::VERSION}" if ARGV.empty? +PgxnUtils::CLI.start( command_args || ARGV )