Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added ezlupdate, a useful program to track ezpublish translations #8943

Closed
wants to merge 2 commits into from

4 participants

@alafon

This is a cool tool since it's going to track all the changes done in your templates & php files, and If needed it will update the .ts file for each language.
The sources are packaged in the eZ Publish tarball. I was forced to download the whole archive to make sure that once it is extracted, it generates a folders tree with the needed depth because the QT project (ezlupdate.pro) has a hardcoded destination folder (../../../bin/macosx/)... If you see another way to do that, feel free.

Library/Formula/ezlupdate.rb
((1 lines not shown))
+require 'formula'
+
+class Ezlupdate < Formula
+ # ezlupdate is part of eZ Publish
+ url 'https://github.com/downloads/ezsystems/ezpublish/ezpublish_community_project-2011.10-with_ezc.tar.bz2'
+ version '2011.10'
+ homepage 'http://ezpedia.org/ez/ezlupdate'
+ md5 'd40cbcf714c1071ffb6ee2c1e4975282'
+
+ depends_on 'qt'
+
+ def install
+ Dir.chdir "support/ezlupdate-qt4.5/ezlupdate"
+ # Use the qmake installation done with brew
+ # because others installations can make a mess
+ system "/usr/local/bin/qmake ezlupdate.pro"
@jacknagel Owner

Can't hardcode /usr/local/bin here, because we support Homebrew installs in other locations.

@adamv Owner
adamv added a note

Use #{HOMEBREW_PREFIX}/bin/qmake ...

@alafon
alafon added a note

Damn! 2nd time I make the mistake.
Fixed
Thanks

And you forgot a make after qmake

@alafon
alafon added a note

No, actually you can't see it because we are in a "commenting mode"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@alafon

Hi guys, please let me know if something else is needed before you can merge this one :)

@adamv
Owner

Added as e1bd38a - sorry about the delay.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 21 additions and 0 deletions.
  1. +21 −0 Library/Formula/ezlupdate.rb
View
21 Library/Formula/ezlupdate.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+class Ezlupdate < Formula
+ # ezlupdate is part of eZ Publish
+ url 'https://github.com/downloads/ezsystems/ezpublish/ezpublish_community_project-2011.10-with_ezc.tar.bz2'
+ version '2011.10'
+ homepage 'http://ezpedia.org/ez/ezlupdate'
+ md5 'd40cbcf714c1071ffb6ee2c1e4975282'
+
+ depends_on 'qt'
+
+ def install
+ Dir.chdir "support/ezlupdate-qt4.5/ezlupdate"
+ # Use the qmake installation done with brew
+ # because others installations can make a mess
+ system "#{HOMEBREW_PREFIX}/bin/qmake ezlupdate.pro"
+ system "make"
+ Dir.chdir "../../.."
+ bin.install ['bin/macosx/ezlupdate']
+ end
+end
Something went wrong with that request. Please try again.