diff --git a/tools/ede.spec.in b/tools/ede.spec.in deleted file mode 100644 index 5d53292..0000000 --- a/tools/ede.spec.in +++ /dev/null @@ -1,76 +0,0 @@ -# -# $Id: ede.spec.in 1652 2006-06-07 19:37:51Z karijes $ -# -# Part of Equinox Desktop Environment (EDE). -# Copyright (c) 2000-2006 EDE Authors. -# -# This program is licenced under terms of the -# GNU General Public Licence version 2 or newer. -# See COPYING for details. - - -# Note that this is NOT a relocatable package -# rpm -bb ede.spec ; /usr/src/RPM/SPECS - -%define name ede -%define ver @EDE_VERSION@ -%define rel 1 -%define localstatedir /var/lib -%define pakdir %{name}-%{ver} - -Summary: The core programs for the Equinox Desktop Environment. -Name: %{name} -Version: %ver -Release: %rel -Copyright: GPL -Group: X11/EDE/Base -Source: %{name}-%{ver}.tar.gz -BuildRoot: /var/tmp/%{name}-%{version}-root -URL: http://sourceforge.net/projects/ede -Prereq: /sbin/install-info -Requires: efltk-devel >= 2.0.4 - -%description -Equinox Desktop Environment (EDE) is desktop environment - the piece of -software that enables you to launch applications in a convenient way, -show what windows you have opened, manages icons and background of your -desktop, etc. This core package provides panel with tasklist, clock, -load status; icon manager that take care of your icons on background, -control panel for easy access to your settings, helpbook for reading -documentation, color configuration, panel configuration, display configuration -utility, menu editor, icons configuration, tips, time/date and timezone -configuration, fast file search tool and of course window manager that manages -your windows with config utility. - -%prep -%setup -q -n %{pakdir} - -%build - -./build.gcc --prefix=%{_prefix} - -%install -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT - -make prefix=$RPM_BUILD_ROOT%{_prefix} install - -%clean -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT - -%post -#/sbin/ldconfig - -%postun -#/sbin/ldconfig - -%files -%doc AUTHORS COPYING ChangeLog NEWS README -%defattr (-, root, root) -%{_bindir}/* -#%{_sysconfdir}/ -%{_datadir}/locale/*/*/* -%{_datadir}/ede/* -%{_datadir}/ede/.ede/* - -%changelog - diff --git a/tools/l10n-prepare.pl b/tools/l10n-prepare.pl deleted file mode 100644 index 076a0e2..0000000 --- a/tools/l10n-prepare.pl +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/perl - -# This Perl script prepares files for translations. -# Extracts strings from code, copies into l10n/ directory and -# creates convinient .tar.gz packages for languages. -# Copyright (c) Vedran Ljubovic 2005. -# This program is licensed under terms of GNU General Public -# License v2 or greater. - - -@directories = ("common", "ecolorconf", "econtrol", "edewm", -"edisplayconf", "efinder","eiconman", "eiconsconf", "einstaller", -"ekeyconf", "elauncher", "emenueditor", "epanelconf", "esvrconf", -"etimedate", "etip", "evolume", "ewmconf", "eworkpanel"); - - -foreach $dir (@directories) { - print "Extracting $dir...\n"; - - # Extract new strings from code - $command = "xgettext -o $dir/locale/messages.pot --keyword=\_ $dir/*.cpp $dir/*.h"; - `$command`; -} - - -print "Copying files...\n"; -while ($nextname = <*/locale/*.po>) { - if ($nextname =~ /(.*?)\/locale\/(.*?)\.po/) { - $dest = "l10n/$2/$1".".po"; - `mkdir l10n/$2 &>/dev/null`; - `cp -f $nextname $dest`; - } else { - print "Error: $nextname\n"; - } -} - -`mkdir l10n/nontranslated &>/dev/null`; -while ($nextname = <*/locale/messages.pot>) { - if ($nextname =~ /(.*?)\/locale\/messages.pot/) { - $dest = "l10n/nontranslated/$1".".pot"; - `cp -f $nextname $dest`; - } else { - print "Error: $nextname\n"; - } -} - -while ($nextname = ) { - if ((-d $nextname) && ($nextname =~ /l10n\/(.*?)$/)) { - print "Creating package for $1...\n"; - `tar czvf l10n/$1.tar.gz l10n/$1`; - } -} - diff --git a/tools/l10n-prepare.sh b/tools/l10n-prepare.sh new file mode 100644 index 0000000..169e352 --- /dev/null +++ b/tools/l10n-prepare.sh @@ -0,0 +1,70 @@ +#!/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 <