summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index f5b3a126..88714cf1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -42,11 +42,6 @@ end
def normalize_po(fn)
content = File.read(fn)
- # replace project-id-version placholder
- modified = content.sub!(/^("Project-Id-Version: )PACKAGE VERSION(\\n")$/) {
- "#{$1}rbot#{$2}"
- }
-
# sort the messages by file location
if MSGCAT
sorted = `#{MSGCAT} --width=79 --sort-by-file #{fn}`
@@ -56,6 +51,11 @@ def normalize_po(fn)
end
end
+ # replace project-id-version placholder
+ modified |= content.sub!(/^("Project-Id-Version: )PACKAGE VERSION(\\n")$/) {
+ "#{$1}rbot#{$2}"
+ }
+
if modified
File.open(fn, 'w') {|f| f.write content}
end