msgmerge (GetText)

    # File lib/gettext/utils.rb, line 37
      def msgmerge(defpo, refpo, app_version)
        $stderr.puts defpo
        cmd = ENV["MSGMERGE_PATH"]
        cmd ||= "msgmerge"

        cont = ""
        if FileTest.exist? defpo
          cont = `#{cmd} #{defpo} #{refpo}`
        else
          File.open(refpo) do |io|
            cont = io.read
          end
        end
        cont.sub!(/(Project-Id-Version\:).*$/, "\\1 #{app_version}\\n\"")
        File.open(defpo, "w") do |out|
          out.write(cont)
        end
        self
      end