From ca5db0a710d63b64965684556e6c66331c5b814c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 16 Dec 2016 16:23:59 +0100 Subject: [PATCH] build system: remove targets for pushing everything to transifex I don't use that anyway, and it's dangerous as it overwrites changes made by translators on Transifex. Added an additional target for pushing the source file to Transifex. --- Rakefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index d67ddadd6..da4808967 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,3 @@ -#!/usr/bin/env ruby # coding: utf-8 if Signal.list.key?('ALRM') @@ -563,14 +562,10 @@ EOT desc "Fetch and merge all translations from Transifex" task "pull" => transifex_pull_targets.values.flatten - desc "Push program translations to Transifex" - task "push-programs" => transifex_push_targets["programs"] - - desc "Push man page translations to Transifex" - task "push-man-pages" => transifex_push_targets["man-pages"] - - desc "Push all translations to Transifex" - task "push" => transifex_push_targets.values.flatten + desc "Push program translation source file to Transifex" + task "push-programs-source" => "po/mkvtoolnix.pot" do + runq "tx push", "po/mkvtoolnix.pot", "tx push -s -r mkvtoolnix.programs > /dev/null" + end end [ :stats, :statistics ].each_with_index do |task_name, idx|