#!/bin/sh # $Id$ # Copy and rename message.pot files, according to their source and pack it # Inspired with l10n-prepare.pl Vedran Ljubovic wrote for EDE 1.x # # Copyright (c) 2005 Vedran Ljubovic # Copyright (c) 2008 Sanel Zukan # License as usually, the same as the rest of EDE parts... pots="ede-2.0.0-l10n" directories=" eabout ecalc ecolorconf econtrol ecrasher edesktopconf edewm edialog edisplayconf efiler efinder ehelp eiconman eimage einstaller ekeyconf elauncher elma emenueditor emountd epanelconf esvrconf etimedate etip evoke evolume ewmconf eworkpanel exset" [ -d $pots ] && rm -R $pots mkdir $pots for i in $directories; do printf "Processing %-25s" "$i..." if [ -r "../$i/locale/messages.pot" ]; then cp "../$i/locale/messages.pot" "$pots/$i.pot" echo "OK" else echo "Not found" fi done cat >$pots/README <