Revision: 6189
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6189&view=rev
Author:   gespinasse
Date:     2011-12-26 13:23:31 +0000 (Mon, 26 Dec 2011)
Log Message:
-----------
Fix msgfmt: error while opening "/usr/src/langs/list_progress/ipcop.po"
Unfortunately list_progress match *_* and was processed.

Filter what found *_* with a sed to avoid that.

cd to $(DIR_SRC)/langs before processing avoid multiple basename.

Add display of directories processed in both GUI and installer cases.

It would have been cleaner to rename list_progress but I can't test that 
actually as ./make.sh language is broken actually.

Modified Paths:
--------------
    ipcop/trunk/lfs/ipcop-lang

Modified: ipcop/trunk/lfs/ipcop-lang
===================================================================
--- ipcop/trunk/lfs/ipcop-lang  2011-12-26 10:08:54 UTC (rev 6188)
+++ ipcop/trunk/lfs/ipcop-lang  2011-12-26 13:23:31 UTC (rev 6189)
@@ -64,14 +64,18 @@
        cp $(DIR_SRC)/langs/list /var/ipcop/main/language.lst
 
        # Locale files for GUI
-       for i in $(DIR_SRC)/langs/*_* ; do \
-               mkdir -p /usr/share/locale/`basename $$i`/LC_MESSAGES; \
-               msgfmt $$i/ipcop.po -o /usr/share/locale/`basename 
$$i`/LC_MESSAGES/ipcop.mo; \
-               localedef -i `basename $$i` -f UTF-8 `basename $$i.utf8` 
--no-archive; \
+       # Unfortunately, list_progress match langs/*_*, so filter that name for 
now with sed.
+       # Replace with *_* after in, once list_progress is renamed
+       cd $(DIR_SRC)/langs && for i in `ls -d *_* | sed "s|list_progress||"`; 
do \
+               echo "Processing $$i for GUI"; \
+               mkdir -p /usr/share/locale/$$i/LC_MESSAGES; \
+               msgfmt $(DIR_SRC)/langs/$$i/ipcop.po -o 
/usr/share/locale/$$i/LC_MESSAGES/ipcop.mo; \
+               localedef -i $$i -f UTF-8 $$i.utf8 --no-archive; \
        done
 
        # Locale files for installer, only create .mo files that will be used
        for i in `grep -v "no-installer" $(DIR_SRC)/langs/list | cut -d ':' -f 
2` ; do \
+               echo "Processing $$i for installer"; \
                mkdir -p /usr/share/locale/$$i/LC_MESSAGES; \
                msgfmt $(DIR_SRC)/langs/$$i/install.po -o 
/usr/share/locale/$$i/LC_MESSAGES/install.mo; \
        done

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to