From fff02b44f5bb78054ac4d0bccaba69febf3c1e98 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 29 Jul 2011 15:10:38 +0200 Subject: [PATCH] support mageia-style gettext package (rubygems) --- bin/album2booh | 5 +++++ bin/booh | 5 +++++ bin/booh-backend | 5 +++++ bin/booh-classifier | 5 +++++ bin/booh-fix-whitebalance | 5 +++++ bin/booh-gamma-correction | 5 +++++ bin/webalbum2booh | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/bin/album2booh b/bin/album2booh index 8997d3d..c83f7bd 100644 --- a/bin/album2booh +++ b/bin/album2booh @@ -33,6 +33,11 @@ # $ recode ISO-8859-1..UTF-8 captions.txt # +begin + require 'rubygems' +rescue LoadError +end + require 'getoptlong' require 'gettext' include GetText diff --git a/bin/booh b/bin/booh index 4843b9d..6a44ab7 100644 --- a/bin/booh +++ b/bin/booh @@ -19,6 +19,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +begin + require 'rubygems' +rescue LoadError +end + require 'getoptlong' require 'tempfile' require 'thread' diff --git a/bin/booh-backend b/bin/booh-backend index a33756e..ed4b7e9 100755 --- a/bin/booh-backend +++ b/bin/booh-backend @@ -19,6 +19,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +begin + require 'rubygems' +rescue LoadError +end + require 'getoptlong' begin #- new style (ruby-locale separated package) diff --git a/bin/booh-classifier b/bin/booh-classifier index b80241e..3b526e1 100644 --- a/bin/booh-classifier +++ b/bin/booh-classifier @@ -19,6 +19,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +begin + require 'rubygems' +rescue LoadError +end + require 'getoptlong' require 'tempfile' diff --git a/bin/booh-fix-whitebalance b/bin/booh-fix-whitebalance index dbaf73e..d20d0b4 100644 --- a/bin/booh-fix-whitebalance +++ b/bin/booh-fix-whitebalance @@ -19,6 +19,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +begin + require 'rubygems' +rescue LoadError +end + require 'gtk2' require 'booh/libadds' diff --git a/bin/booh-gamma-correction b/bin/booh-gamma-correction index 495a5b9..a0328f1 100644 --- a/bin/booh-gamma-correction +++ b/bin/booh-gamma-correction @@ -19,6 +19,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +begin + require 'rubygems' +rescue LoadError +end + require 'gtk2' require 'booh/libadds' diff --git a/bin/webalbum2booh b/bin/webalbum2booh index fe15c78..2bd2eb5 100644 --- a/bin/webalbum2booh +++ b/bin/webalbum2booh @@ -19,6 +19,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +begin + require 'rubygems' +rescue LoadError +end + require 'getoptlong' require 'gettext' include GetText -- 2.21.3