Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add error message

  • Loading branch information...
commit e9e3e7341d4ea55b0db323cbb1a31a5c1625adce 1 parent 8bb58a6
Thomas Schmidt authored April 05, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/tasks/gettext.rake
2  lib/tasks/gettext.rake
@@ -5,6 +5,7 @@
5 5
 desc "Import clean (non-fuzzy) .mo files from lcn checkout"
6 6
 task :makemo do
7 7
   require 'gettext/utils'
  8
+  raise "ERROR: $MY_LCN_CHECKOUT should point to your checkout of https://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn" if ENV["MY_LCN_CHECKOUT"].nil?
8 9
   system("cd $MY_LCN_CHECKOUT && svn up")
9 10
   files = Dir.glob(ENV["MY_LCN_CHECKOUT"] + "/*/po/software-opensuse-org*.po")
10 11
   files.each { |file|
@@ -30,6 +31,7 @@ end
30 31
 desc "Update pot/po files in lcn checkout to match new version."
31 32
 task :updatepo do
32 33
   require 'gettext/utils'
  34
+  raise "ERROR: $MY_LCN_CHECKOUT should point to your checkout of https://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn" if ENV["MY_LCN_CHECKOUT"].nil?
33 35
   files = Dir.glob("{app,lib}/**/*.{rb,rhtml,erb}")
34 36
   GetText.rgettext(files, "tmp.pot")
35 37
   system("cd $MY_LCN_CHECKOUT && svn up")

0 notes on commit e9e3e73

Please sign in to comment.
Something went wrong with that request. Please try again.