Revision: 6585 http://ipcop.svn.sourceforge.net/ipcop/?rev=6585&view=rev Author: gespinasse Date: 2012-04-27 16:13:48 +0000 (Fri, 27 Apr 2012) Log Message: ----------- Remove another for .. in ls Give a better glob rule that let list_progress not match
Replace ; with && on the loop. I am unsure that would stop on error otherwise Remove the first comment that should be outdated from the beginning Modified Paths: -------------- ipcop/trunk/lfs/ipcop-lang Modified: ipcop/trunk/lfs/ipcop-lang =================================================================== --- ipcop/trunk/lfs/ipcop-lang 2012-04-27 13:41:38 UTC (rev 6584) +++ ipcop/trunk/lfs/ipcop-lang 2012-04-27 16:13:48 UTC (rev 6585) @@ -58,8 +58,6 @@ $(TARGET) : $(firstword $(MAKEFILE_LIST)) $(DIR_SRC)/langs/*/*.po @$(PREBUILD) - # First, start clean by removing anything from previous runs ? - # List of translated languages cp $(DIR_SRC)/langs/list /var/ipcop/main/language.lst @@ -67,12 +65,10 @@ # some headers are missing : Project-Id-Version, PO-Revision-Date, Last-Translator, Language-Team, MIME-Version, Language # Locale files for GUI - # 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 --check-format $(DIR_SRC)/langs/$$i/ipcop.po -o /usr/share/locale/$$i/LC_MESSAGES/ipcop.mo; \ + cd $(DIR_SRC)/langs && for i in ??_??; do \ + echo "Processing $$i for GUI" && \ + mkdir -p /usr/share/locale/$$i/LC_MESSAGES && \ + msgfmt --check-format $(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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn