Commit 2bca22fae340bf9e59b7f26be483ed3e6ddc96fb
1 parent
2072b7a7bd
Exists in
master
Almost completed cmake support with po and html directories
Showing 27 changed files with 39 additions and 751 deletions Side-by-side Diff
- CMakeLists.txt
- VERSION
- distromatic.conf
- html/CMakeLists.txt
- html/index.html
- html/index.html.in
- html/index.php.in
- html/index.postnuke.php.in
- make_dist.sh
- po/CMakeLists.txt
- po/ChangeLog
- po/LINGUAS
- po/Makefile.in.in
- po/Makevars
- po/POTFILES
- po/POTFILES.in
- po/Rules-quot
- po/boldquot.sed
- po/en@boldquot.header
- po/en@quot.header
- po/insert-header.sin
- po/it.po
- po/it/distromatic.po
- po/quot.sed
- po/remove-potcdate.sin
- po/stamp-po
- src/CMakeLists.txt
CMakeLists.txt
... | ... | @@ -4,5 +4,14 @@ |
4 | 4 | |
5 | 5 | set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale") |
6 | 6 | |
7 | +file (STRINGS "VERSION" VERSION) | |
8 | + | |
7 | 9 | add_subdirectory(src) |
10 | +add_subdirectory(po) | |
11 | +add_subdirectory(html) | |
12 | + | |
13 | +install( | |
14 | + FILES distromatic.conf | |
15 | + DESTINATION ${SYSCONF_INSTALL_DIR} | |
16 | +) |
VERSION
1 | +1.5.0 |
distromatic.conf
1 | 1 | # |
2 | 2 | # Sample configuration file for distromatic |
3 | 3 | # |
4 | -# Copyright (c) 2004-2007 by Silvan Calarco <silvan.calarco@mambasoft.it> | |
4 | +# Copyright (c) 2004-2020 by Silvan Calarco <silvan.calarco@mambasoft.it> | |
5 | 5 | # Copyright (c) 2006 by Davide Madrisan <davide.madrisan@gmail.com> |
6 | 6 | |
7 | 7 | #[defaults] |
html/CMakeLists.txt
html/index.html
1 | +<!--#if expr="$QUERY_STRING = /tag=([a-zA-Z0-9\-+_\.]+)/" --> | |
2 | + <!--#set var="tag" value="$1" --> | |
3 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/_index.inc" --> | |
4 | + <!--#set var="title" value="List of all packages in the $tag repository" --> | |
5 | + <!--#set var="description" value="List of all RPM packages in the openmamba $tag repository" --> | |
6 | + <!--#if expr="$QUERY_STRING = /pkg=([a-zA-Z0-9\-+_\.]+)/" --> | |
7 | + <!--#set var="pkg" value="$1" --> | |
8 | + <!--#if expr="$pkg != _index" --> | |
9 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/${pkg}.inc" --> | |
10 | + <!--#set var="title" value="$pkg RPM package information ($tag repository)" --> | |
11 | + <!--#set var="description" value="openmamba $tag repository: $pkg RPM package information and download" --> | |
12 | + <!--#endif --> | |
13 | + <!--#endif --> | |
14 | + <!--#if expr="$QUERY_STRING = /maintainer=([a-zA-Z0-9\-+_\.:]+)/" --> | |
15 | + <!--#set var="maintainer" value="$1" --> | |
16 | + <!--#if expr="$maintainer = _index" --> | |
17 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/_maintainers.inc" --> | |
18 | + <!--#set var="title" value="List of all maintainers in the $tag repository" --> | |
19 | + <!--#set var="description" value="List of all maintainers in the $tag repository" --> | |
20 | + <!--#else --> | |
21 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/maintainers/${maintainer}.inc" --> | |
22 | + <!--#set var="title" value="Packages maintained by ${maintainer} in the $tag repository" --> | |
23 | + <!--#set var="description" value="Packages maintained by ${maintainer} in the $tag repository" --> | |
24 | + <!--#endif --> | |
25 | + <!--#endif --> | |
26 | + <!--#if expr="$QUERY_STRING = /group=([a-zA-Z0-9\-+_\.:]+)/" --> | |
27 | + <!--#set var="group" value="$1" --> | |
28 | + <!--#if expr="$group = _index" --> | |
29 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/_groups.inc" --> | |
30 | + <!--#set var="title" value="List of all groups for the $tag repository" --> | |
31 | + <!--#set var="description" value="List of all groups for the $tag repository" --> | |
32 | + <!--#else --> | |
33 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/${group}/_index.inc" --> | |
34 | + <!--#set var="title" value="Packages of $group group in the $tag repository" --> | |
35 | + <!--#set var="description" value="Packages of $group group in the $tag repository" --> | |
36 | + <!--#endif --> | |
37 | + <!--#endif --> | |
38 | +<!--#else --> | |
39 | + <!--#set var="includefile" value="/pub/openmamba/distromatic/_index.inc" --> | |
40 | + <!--#set var="title" value="Index of all available repositories" --> | |
41 | + <!--#set var="description" value="Index of all available repositories" --> | |
42 | +<!--#endif --> | |
43 | +<!--#include virtual="/header.html" --> | |
44 | +<table width="100%"><tr><td> | |
45 | +<br> | |
46 | +<!--#if expr="$tag != ''" --> | |
47 | +[<a href="index.html">repositories</a>] | |
48 | + <!--#if expr="$group != _index" --> | |
49 | +[<a href="index.html?tag=<!--#echo var=tag -->&group=_index"><!--#echo var=tag --> groups</a>] | |
50 | + <!--#endif --> | |
51 | + <!--#if expr="$pkg != '_index'" --> | |
52 | +[<a href="index.html?tag=<!--#echo var=tag -->&pkg=_index"><!--#echo var=tag --> packages</a>] | |
53 | + <!--#endif --> | |
54 | + <!--#if expr="$maintainer != _index" --> | |
55 | +[<a href="index.html?tag=<!--#echo var=tag -->&maintainer=_index"><!--#echo var=tag --> maintainers</a>] | |
56 | + <!--#endif --> | |
57 | +<!--#endif --> | |
58 | +<br> | |
59 | +<br> | |
60 | +<table border=0><tr> | |
61 | +<td valign=top width="100%"> | |
62 | +<!--#include virtual=${includefile} --> | |
63 | +</td> | |
64 | +<td valign=top> | |
65 | +<!--#include virtual="/verticalbanner.html" --> | |
66 | +</td></tr></table> | |
67 | +<br><font size=-1> | |
68 | +<!--#if expr="$tag != ''" --> | |
69 | +[<a href="index.html">repositories</a>] | |
70 | + <!--#if expr="$group != _index" --> | |
71 | +[<a href="index.html?tag=<!--#echo var=tag -->&group=_index"><!--#echo var=tag --> groups</a>] | |
72 | + <!--#endif --> | |
73 | + <!--#if expr="$pkg != '_index'" --> | |
74 | +[<a href="index.html?tag=<!--#echo var=tag -->&pkg=_index"><!--#echo var=tag --> packages</a>] | |
75 | + <!--#endif --> | |
76 | + <!--#if expr="$maintainer != _index" --> | |
77 | +[<a href="index.html?tag=<!--#echo var=tag -->&maintainer=_index"><!--#echo var=tag --> maintainers</a>] | |
78 | + <!--#endif --> | |
79 | +<!--#endif --> | |
80 | +<br> | |
81 | +<br>Automatically generated by <a href="index.html?tag=devel&pkg=distromatic">distromatic</a>. | |
82 | +<br> | |
83 | +</font> | |
84 | +</td></tr></table> | |
85 | +<!--#include virtual="/footer.html" --> |
html/index.html.in
1 | -<!--#if expr="$QUERY_STRING = /tag=([a-zA-Z0-9\-+_\.]+)/" --> | |
2 | - <!--#set var="tag" value="$1" --> | |
3 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/_index.inc" --> | |
4 | - <!--#set var="title" value="List of all packages in the $tag repository" --> | |
5 | - <!--#set var="description" value="List of all RPM packages in the openmamba $tag repository" --> | |
6 | - <!--#if expr="$QUERY_STRING = /pkg=([a-zA-Z0-9\-+_\.]+)/" --> | |
7 | - <!--#set var="pkg" value="$1" --> | |
8 | - <!--#if expr="$pkg != _index" --> | |
9 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/${pkg}.inc" --> | |
10 | - <!--#set var="title" value="$pkg RPM package information ($tag repository)" --> | |
11 | - <!--#set var="description" value="openmamba $tag repository: $pkg RPM package information and download" --> | |
12 | - <!--#endif --> | |
13 | - <!--#endif --> | |
14 | - <!--#if expr="$QUERY_STRING = /maintainer=([a-zA-Z0-9\-+_\.:]+)/" --> | |
15 | - <!--#set var="maintainer" value="$1" --> | |
16 | - <!--#if expr="$maintainer = _index" --> | |
17 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/_maintainers.inc" --> | |
18 | - <!--#set var="title" value="List of all maintainers in the $tag repository" --> | |
19 | - <!--#set var="description" value="List of all maintainers in the $tag repository" --> | |
20 | - <!--#else --> | |
21 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/maintainers/${maintainer}.inc" --> | |
22 | - <!--#set var="title" value="Packages maintained by ${maintainer} in the $tag repository" --> | |
23 | - <!--#set var="description" value="Packages maintained by ${maintainer} in the $tag repository" --> | |
24 | - <!--#endif --> | |
25 | - <!--#endif --> | |
26 | - <!--#if expr="$QUERY_STRING = /group=([a-zA-Z0-9\-+_\.:]+)/" --> | |
27 | - <!--#set var="group" value="$1" --> | |
28 | - <!--#if expr="$group = _index" --> | |
29 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/_groups.inc" --> | |
30 | - <!--#set var="title" value="List of all groups for the $tag repository" --> | |
31 | - <!--#set var="description" value="List of all groups for the $tag repository" --> | |
32 | - <!--#else --> | |
33 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/${tag}/${group}/_index.inc" --> | |
34 | - <!--#set var="title" value="Packages of $group group in the $tag repository" --> | |
35 | - <!--#set var="description" value="Packages of $group group in the $tag repository" --> | |
36 | - <!--#endif --> | |
37 | - <!--#endif --> | |
38 | -<!--#else --> | |
39 | - <!--#set var="includefile" value="/pub/openmamba/distromatic/_index.inc" --> | |
40 | - <!--#set var="title" value="Index of all available repositories" --> | |
41 | - <!--#set var="description" value="Index of all available repositories" --> | |
42 | -<!--#endif --> | |
43 | -<!--#include virtual="/header.html" --> | |
44 | -<table width="100%"><tr><td> | |
45 | -<br> | |
46 | -<!--#if expr="$tag != ''" --> | |
47 | -[<a href="index.html">repositories</a>] | |
48 | - <!--#if expr="$group != _index" --> | |
49 | -[<a href="index.html?tag=<!--#echo var=tag -->&group=_index"><!--#echo var=tag --> groups</a>] | |
50 | - <!--#endif --> | |
51 | - <!--#if expr="$pkg != '_index'" --> | |
52 | -[<a href="index.html?tag=<!--#echo var=tag -->&pkg=_index"><!--#echo var=tag --> packages</a>] | |
53 | - <!--#endif --> | |
54 | - <!--#if expr="$maintainer != _index" --> | |
55 | -[<a href="index.html?tag=<!--#echo var=tag -->&maintainer=_index"><!--#echo var=tag --> maintainers</a>] | |
56 | - <!--#endif --> | |
57 | -<!--#endif --> | |
58 | -<br> | |
59 | -<br> | |
60 | -<table border=0><tr> | |
61 | -<td valign=top width="100%"> | |
62 | -<!--#include virtual=${includefile} --> | |
63 | -</td> | |
64 | -<td valign=top> | |
65 | -<!--#include virtual="/verticalbanner.html" --> | |
66 | -</td></tr></table> | |
67 | -<br><font size=-1> | |
68 | -<!--#if expr="$tag != ''" --> | |
69 | -[<a href="index.html">repositories</a>] | |
70 | - <!--#if expr="$group != _index" --> | |
71 | -[<a href="index.html?tag=<!--#echo var=tag -->&group=_index"><!--#echo var=tag --> groups</a>] | |
72 | - <!--#endif --> | |
73 | - <!--#if expr="$pkg != '_index'" --> | |
74 | -[<a href="index.html?tag=<!--#echo var=tag -->&pkg=_index"><!--#echo var=tag --> packages</a>] | |
75 | - <!--#endif --> | |
76 | - <!--#if expr="$maintainer != _index" --> | |
77 | -[<a href="index.html?tag=<!--#echo var=tag -->&maintainer=_index"><!--#echo var=tag --> maintainers</a>] | |
78 | - <!--#endif --> | |
79 | -<!--#endif --> | |
80 | -<br> | |
81 | -<br>Automatically generated by <a href="index.html?tag=devel&pkg=distromatic">distromatic</a>. | |
82 | -<br> | |
83 | -</font> | |
84 | -</td></tr></table> | |
85 | -<!--#include virtual="/footer.html" --> |
html/index.php.in
1 | -<?php $_GET = &$HTTP_GET_VARS; ?> | |
2 | -<html><br><font class="pn-title"><b>QiLinux packages list</b><br><br></font> | |
3 | -<? | |
4 | -$includename="index.inc"; | |
5 | -if (isset($_GET[tag])) { | |
6 | - $includename=$_GET[tag]; | |
7 | - | |
8 | - if (isset($_GET[pkg])) { | |
9 | - $includename="$includename/$_GET[pkg].inc"; | |
10 | - } else { | |
11 | - $includename="$includename/index.inc"; | |
12 | - } | |
13 | -} | |
14 | - | |
15 | -//echo "$includename"; | |
16 | -include($includename); | |
17 | -?> | |
18 | -<br><font size=-1> | |
19 | -[<a href="?">index</a>] | |
20 | -<? | |
21 | -if (isset($_GET[tag]) && isset($_GET[pkg])) { | |
22 | - echo "[<a href=\"?tag=$_GET[tag]\">$_GET[tag]</a>]"; | |
23 | -} | |
24 | -?> | |
25 | -<br>Automatically generated by Distromatic @PACKAGE_VERSION@, (C) 2004-2006 by Silvan Calarco and Davide Madrisan | |
26 | -</font></html> |
html/index.postnuke.php.in
1 | -<?php | |
2 | - | |
3 | -if (!defined("LOADED_AS_MODULE")) { | |
4 | - die ("You can't access this file directly..."); | |
5 | -} | |
6 | - | |
7 | -/* | |
8 | - Credits to Edgar Miller -- http://www.bosna.de/ from his post on PHP-Nuke | |
9 | - ( http://phpnuke.org/article.php?sid=2010&mode=nested&order=0&thold=0 ) | |
10 | - Further Credits go to Djordjevic Nebojsa (nesh) for the fix for the fix | |
11 | - */ | |
12 | - | |
13 | -$ModName = basename(dirname(__FILE__)); | |
14 | - | |
15 | -modules_get_language(); | |
16 | -include("header.php"); | |
17 | -?> | |
18 | - | |
19 | -<?php $_GET = &$HTTP_GET_VARS; ?> | |
20 | -<html><h1>Distromatic repository for QiLinux</h1> | |
21 | -<? | |
22 | -$BASEURL="?op=modload&name=distromatic&file=index"; | |
23 | -$includename="_index.inc"; | |
24 | -if (isset($_GET[tag])) { | |
25 | - $includename=$_GET[tag]; | |
26 | - | |
27 | - if (isset($_GET[pkg])) { | |
28 | - $includename="$includename/$_GET[pkg].inc"; | |
29 | - } else { | |
30 | - $includename="$includename/_index.inc"; | |
31 | - } | |
32 | -} | |
33 | - | |
34 | -//echo "$includename"; | |
35 | -include($includename); | |
36 | -?> | |
37 | -<br><font size=-1> | |
38 | -[<a href="<? echo $BASEURL ?>">index</a>] | |
39 | -<? | |
40 | -if (isset($_GET[tag]) && isset($_GET[pkg])) { | |
41 | - echo "[<a href=\"",$BASEURL,"&tag=$_GET[tag]\">$_GET[tag]</a>]"; | |
42 | -} | |
43 | -?> | |
44 | -<br><br>Automatically generated by Distromatic @PACKAGE_VERSION@ (C) 2004-2006 by Silvan Calarco and Davide Madrisan | |
45 | -</font></html> | |
46 | - | |
47 | -<? include ("footer.php"); | |
48 | -?> |
make_dist.sh
1 | +#!/bin/bash | |
2 | +VERSION=`cat VERSION` | |
3 | +mkdir -p distromatic-${VERSION} | |
4 | +cp -a src html po distromatic-${VERSION}/ | |
5 | +cp CMakeLists.txt AUTHORS COPYING ChangeLog distromatic.conf VERSION distromatic-${VERSION}/ | |
6 | +tar cJf distromatic-${VERSION}.tar.xz distromatic-${VERSION} | |
7 | +rm -rf distromatic-${VERSION} |
po/CMakeLists.txt
po/ChangeLog
1 | -2013-10-14 gettextize <bug-gnu-gettext@gnu.org> | |
2 | - | |
3 | - * Makefile.in.in: New file, from gettext-0.18.3. | |
4 | - * Rules-quot: New file, from gettext-0.18.3. | |
5 | - * boldquot.sed: New file, from gettext-0.18.3. | |
6 | - * en@boldquot.header: New file, from gettext-0.18.3. | |
7 | - * en@quot.header: New file, from gettext-0.18.3. | |
8 | - * insert-header.sin: New file, from gettext-0.18.3. | |
9 | - * quot.sed: New file, from gettext-0.18.3. | |
10 | - * remove-potcdate.sin: New file, from gettext-0.18.3. | |
11 | - * POTFILES.in: New file. |
po/LINGUAS
1 | -it |
po/Makefile.in.in
1 | -# Makefile for PO directory in any package using GNU gettext. | |
2 | -# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | |
3 | -# | |
4 | -# This file can be copied and used freely without restrictions. It can | |
5 | -# be used in projects which are not available under the GNU General Public | |
6 | -# License but which still want to provide support for the GNU gettext | |
7 | -# functionality. | |
8 | -# Please note that the actual code of GNU gettext is covered by the GNU | |
9 | -# General Public License and is *not* in the public domain. | |
10 | -# | |
11 | -# Origin: gettext-0.18.3 | |
12 | -GETTEXT_MACRO_VERSION = 0.20 | |
13 | - | |
14 | -PACKAGE = @PACKAGE@ | |
15 | -VERSION = @VERSION@ | |
16 | -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
17 | - | |
18 | -SED = @SED@ | |
19 | -SHELL = /bin/sh | |
20 | -@SET_MAKE@ | |
21 | - | |
22 | -srcdir = @srcdir@ | |
23 | -top_srcdir = @top_srcdir@ | |
24 | -VPATH = @srcdir@ | |
25 | - | |
26 | -prefix = @prefix@ | |
27 | -exec_prefix = @exec_prefix@ | |
28 | -datarootdir = @datarootdir@ | |
29 | -datadir = @datadir@ | |
30 | -localedir = @localedir@ | |
31 | -gettextsrcdir = $(datadir)/gettext/po | |
32 | - | |
33 | -INSTALL = @INSTALL@ | |
34 | -INSTALL_DATA = @INSTALL_DATA@ | |
35 | - | |
36 | -# We use $(mkdir_p). | |
37 | -# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as | |
38 | -# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, | |
39 | -# @install_sh@ does not start with $(SHELL), so we add it. | |
40 | -# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined | |
41 | -# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake | |
42 | -# versions, $(mkinstalldirs) and $(install_sh) are unused. | |
43 | -mkinstalldirs = $(SHELL) @install_sh@ -d | |
44 | -install_sh = $(SHELL) @install_sh@ | |
45 | -MKDIR_P = @MKDIR_P@ | |
46 | -mkdir_p = @mkdir_p@ | |
47 | - | |
48 | -GMSGFMT_ = @GMSGFMT@ | |
49 | -GMSGFMT_no = @GMSGFMT@ | |
50 | -GMSGFMT_yes = @GMSGFMT_015@ | |
51 | -GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) | |
52 | -MSGFMT_ = @MSGFMT@ | |
53 | -MSGFMT_no = @MSGFMT@ | |
54 | -MSGFMT_yes = @MSGFMT_015@ | |
55 | -MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) | |
56 | -XGETTEXT_ = @XGETTEXT@ | |
57 | -XGETTEXT_no = @XGETTEXT@ | |
58 | -XGETTEXT_yes = @XGETTEXT_015@ | |
59 | -XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) | |
60 | -MSGMERGE = msgmerge | |
61 | -MSGMERGE_UPDATE = @MSGMERGE@ --update | |
62 | -MSGINIT = msginit | |
63 | -MSGCONV = msgconv | |
64 | -MSGFILTER = msgfilter | |
65 | - | |
66 | -POFILES = @POFILES@ | |
67 | -GMOFILES = @GMOFILES@ | |
68 | -UPDATEPOFILES = @UPDATEPOFILES@ | |
69 | -DUMMYPOFILES = @DUMMYPOFILES@ | |
70 | -DISTFILES.common = Makefile.in.in remove-potcdate.sin \ | |
71 | -$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) | |
72 | -DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ | |
73 | -$(POFILES) $(GMOFILES) \ | |
74 | -$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) | |
75 | - | |
76 | -POTFILES = \ | |
77 | - | |
78 | -CATALOGS = @CATALOGS@ | |
79 | - | |
80 | -# Makevars gets inserted here. (Don't remove this line!) | |
81 | - | |
82 | -.SUFFIXES: | |
83 | -.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update | |
84 | - | |
85 | -.po.mo: | |
86 | - @echo "$(MSGFMT) -c -o $@ $<"; \ | |
87 | - $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ | |
88 | - | |
89 | -.po.gmo: | |
90 | - @lang=`echo $* | sed -e 's,.*/,,'`; \ | |
91 | - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | |
92 | - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ | |
93 | - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo | |
94 | - | |
95 | -.sin.sed: | |
96 | - sed -e '/^#/d' $< > t-$@ | |
97 | - mv t-$@ $@ | |
98 | - | |
99 | - | |
100 | -all: all-@USE_NLS@ | |
101 | - | |
102 | -all-yes: stamp-po | |
103 | -all-no: | |
104 | - | |
105 | -# Ensure that the gettext macros and this Makefile.in.in are in sync. | |
106 | -CHECK_MACRO_VERSION = \ | |
107 | - test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ | |
108 | - || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ | |
109 | - exit 1; \ | |
110 | - } | |
111 | - | |
112 | -# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no | |
113 | -# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because | |
114 | -# we don't want to bother translators with empty POT files). We assume that | |
115 | -# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. | |
116 | -# In this case, stamp-po is a nop (i.e. a phony target). | |
117 | - | |
118 | -# stamp-po is a timestamp denoting the last time at which the CATALOGS have | |
119 | -# been loosely updated. Its purpose is that when a developer or translator | |
120 | -# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, | |
121 | -# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent | |
122 | -# invocations of "make" will do nothing. This timestamp would not be necessary | |
123 | -# if updating the $(CATALOGS) would always touch them; however, the rule for | |
124 | -# $(POFILES) has been designed to not touch files that don't need to be | |
125 | -# changed. | |
126 | -stamp-po: $(srcdir)/$(DOMAIN).pot | |
127 | - @$(CHECK_MACRO_VERSION) | |
128 | - test ! -f $(srcdir)/$(DOMAIN).pot || \ | |
129 | - test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) | |
130 | - @test ! -f $(srcdir)/$(DOMAIN).pot || { \ | |
131 | - echo "touch stamp-po" && \ | |
132 | - echo timestamp > stamp-poT && \ | |
133 | - mv stamp-poT stamp-po; \ | |
134 | - } | |
135 | - | |
136 | -# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', | |
137 | -# otherwise packages like GCC can not be built if only parts of the source | |
138 | -# have been downloaded. | |
139 | - | |
140 | -# This target rebuilds $(DOMAIN).pot; it is an expensive operation. | |
141 | -# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. | |
142 | -# The determination of whether the package xyz is a GNU one is based on the | |
143 | -# heuristic whether some file in the top level directory mentions "GNU xyz". | |
144 | -# If GNU 'find' is available, we avoid grepping through monster files. | |
145 | -$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed | |
146 | - if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ | |
147 | - LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \ | |
148 | - else \ | |
149 | - LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ | |
150 | - fi; \ | |
151 | - } | grep -v 'libtool:' >/dev/null; then \ | |
152 | - package_gnu='GNU '; \ | |
153 | - else \ | |
154 | - package_gnu=''; \ | |
155 | - fi; \ | |
156 | - if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ | |
157 | - msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ | |
158 | - else \ | |
159 | - msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ | |
160 | - fi; \ | |
161 | - case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ | |
162 | - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ | |
163 | - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ | |
164 | - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ | |
165 | - --files-from=$(srcdir)/POTFILES.in \ | |
166 | - --copyright-holder='$(COPYRIGHT_HOLDER)' \ | |
167 | - --msgid-bugs-address="$$msgid_bugs_address" \ | |
168 | - ;; \ | |
169 | - *) \ | |
170 | - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ | |
171 | - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ | |
172 | - --files-from=$(srcdir)/POTFILES.in \ | |
173 | - --copyright-holder='$(COPYRIGHT_HOLDER)' \ | |
174 | - --package-name="$${package_gnu}@PACKAGE@" \ | |
175 | - --package-version='@VERSION@' \ | |
176 | - --msgid-bugs-address="$$msgid_bugs_address" \ | |
177 | - ;; \ | |
178 | - esac | |
179 | - test ! -f $(DOMAIN).po || { \ | |
180 | - if test -f $(srcdir)/$(DOMAIN).pot; then \ | |
181 | - sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ | |
182 | - sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ | |
183 | - if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ | |
184 | - rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ | |
185 | - else \ | |
186 | - rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ | |
187 | - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ | |
188 | - fi; \ | |
189 | - else \ | |
190 | - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ | |
191 | - fi; \ | |
192 | - } | |
193 | - | |
194 | -# This rule has no dependencies: we don't need to update $(DOMAIN).pot at | |
195 | -# every "make" invocation, only create it when it is missing. | |
196 | -# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. | |
197 | -$(srcdir)/$(DOMAIN).pot: | |
198 | - $(MAKE) $(DOMAIN).pot-update | |
199 | - | |
200 | -# This target rebuilds a PO file if $(DOMAIN).pot has changed. | |
201 | -# Note that a PO file is not touched if it doesn't need to be changed. | |
202 | -$(POFILES): $(srcdir)/$(DOMAIN).pot | |
203 | - @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ | |
204 | - if test -f "$(srcdir)/$${lang}.po"; then \ | |
205 | - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | |
206 | - echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ | |
207 | - cd $(srcdir) \ | |
208 | - && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ | |
209 | - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ | |
210 | - $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ | |
211 | - *) \ | |
212 | - $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ | |
213 | - esac; \ | |
214 | - }; \ | |
215 | - else \ | |
216 | - $(MAKE) $${lang}.po-create; \ | |
217 | - fi | |
218 | - | |
219 | - | |
220 | -install: install-exec install-data | |
221 | -install-exec: | |
222 | -install-data: install-data-@USE_NLS@ | |
223 | - if test "$(PACKAGE)" = "gettext-tools"; then \ | |
224 | - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | |
225 | - for file in $(DISTFILES.common) Makevars.template; do \ | |
226 | - $(INSTALL_DATA) $(srcdir)/$$file \ | |
227 | - $(DESTDIR)$(gettextsrcdir)/$$file; \ | |
228 | - done; \ | |
229 | - for file in Makevars; do \ | |
230 | - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ | |
231 | - done; \ | |
232 | - else \ | |
233 | - : ; \ | |
234 | - fi | |
235 | -install-data-no: all | |
236 | -install-data-yes: all | |
237 | - @catalogs='$(CATALOGS)'; \ | |
238 | - for cat in $$catalogs; do \ | |
239 | - cat=`basename $$cat`; \ | |
240 | - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | |
241 | - dir=$(localedir)/$$lang/LC_MESSAGES; \ | |
242 | - $(mkdir_p) $(DESTDIR)$$dir; \ | |
243 | - if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ | |
244 | - $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ | |
245 | - echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ | |
246 | - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ | |
247 | - if test -n "$$lc"; then \ | |
248 | - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ | |
249 | - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ | |
250 | - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | |
251 | - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | |
252 | - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ | |
253 | - for file in *; do \ | |
254 | - if test -f $$file; then \ | |
255 | - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ | |
256 | - fi; \ | |
257 | - done); \ | |
258 | - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | |
259 | - else \ | |
260 | - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ | |
261 | - :; \ | |
262 | - else \ | |
263 | - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ | |
264 | - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | |
265 | - fi; \ | |
266 | - fi; \ | |
267 | - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ | |
268 | - ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ | |
269 | - ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ | |
270 | - cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ | |
271 | - echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ | |
272 | - fi; \ | |
273 | - done; \ | |
274 | - done | |
275 | - | |
276 | -install-strip: install | |
277 | - | |
278 | -installdirs: installdirs-exec installdirs-data | |
279 | -installdirs-exec: | |
280 | -installdirs-data: installdirs-data-@USE_NLS@ | |
281 | - if test "$(PACKAGE)" = "gettext-tools"; then \ | |
282 | - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | |
283 | - else \ | |
284 | - : ; \ | |
285 | - fi | |
286 | -installdirs-data-no: | |
287 | -installdirs-data-yes: | |
288 | - @catalogs='$(CATALOGS)'; \ | |
289 | - for cat in $$catalogs; do \ | |
290 | - cat=`basename $$cat`; \ | |
291 | - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | |
292 | - dir=$(localedir)/$$lang/LC_MESSAGES; \ | |
293 | - $(mkdir_p) $(DESTDIR)$$dir; \ | |
294 | - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ | |
295 | - if test -n "$$lc"; then \ | |
296 | - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ | |
297 | - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ | |
298 | - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | |
299 | - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | |
300 | - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ | |
301 | - for file in *; do \ | |
302 | - if test -f $$file; then \ | |
303 | - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ | |
304 | - fi; \ | |
305 | - done); \ | |
306 | - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ | |
307 | - else \ | |
308 | - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ | |
309 | - :; \ | |
310 | - else \ | |
311 | - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ | |
312 | - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ | |
313 | - fi; \ | |
314 | - fi; \ | |
315 | - fi; \ | |
316 | - done; \ | |
317 | - done | |
318 | - | |
319 | -# Define this as empty until I found a useful application. | |
320 | -installcheck: | |
321 | - | |
322 | -uninstall: uninstall-exec uninstall-data | |
323 | -uninstall-exec: | |
324 | -uninstall-data: uninstall-data-@USE_NLS@ | |
325 | - if test "$(PACKAGE)" = "gettext-tools"; then \ | |
326 | - for file in $(DISTFILES.common) Makevars.template; do \ | |
327 | - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ | |
328 | - done; \ | |
329 | - else \ | |
330 | - : ; \ | |
331 | - fi | |
332 | -uninstall-data-no: | |
333 | -uninstall-data-yes: | |
334 | - catalogs='$(CATALOGS)'; \ | |
335 | - for cat in $$catalogs; do \ | |
336 | - cat=`basename $$cat`; \ | |
337 | - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | |
338 | - for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ | |
339 | - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ | |
340 | - done; \ | |
341 | - done | |
342 | - | |
343 | -check: all | |
344 | - | |
345 | -info dvi ps pdf html tags TAGS ctags CTAGS ID: | |
346 | - | |
347 | -mostlyclean: | |
348 | - rm -f remove-potcdate.sed | |
349 | - rm -f stamp-poT | |
350 | - rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po | |
351 | - rm -fr *.o | |
352 | - | |
353 | -clean: mostlyclean | |
354 | - | |
355 | -distclean: clean | |
356 | - rm -f Makefile Makefile.in POTFILES *.mo | |
357 | - | |
358 | -maintainer-clean: distclean | |
359 | - @echo "This command is intended for maintainers to use;" | |
360 | - @echo "it deletes files that may require special tools to rebuild." | |
361 | - rm -f stamp-po $(GMOFILES) | |
362 | - | |
363 | -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | |
364 | -dist distdir: | |
365 | - $(MAKE) update-po | |
366 | - @$(MAKE) dist2 | |
367 | -# This is a separate target because 'update-po' must be executed before. | |
368 | -dist2: stamp-po $(DISTFILES) | |
369 | - dists="$(DISTFILES)"; \ | |
370 | - if test "$(PACKAGE)" = "gettext-tools"; then \ | |
371 | - dists="$$dists Makevars.template"; \ | |
372 | - fi; \ | |
373 | - if test -f $(srcdir)/$(DOMAIN).pot; then \ | |
374 | - dists="$$dists $(DOMAIN).pot stamp-po"; \ | |
375 | - fi; \ | |
376 | - if test -f $(srcdir)/ChangeLog; then \ | |
377 | - dists="$$dists ChangeLog"; \ | |
378 | - fi; \ | |
379 | - for i in 0 1 2 3 4 5 6 7 8 9; do \ | |
380 | - if test -f $(srcdir)/ChangeLog.$$i; then \ | |
381 | - dists="$$dists ChangeLog.$$i"; \ | |
382 | - fi; \ | |
383 | - done; \ | |
384 | - if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ | |
385 | - for file in $$dists; do \ | |
386 | - if test -f $$file; then \ | |
387 | - cp -p $$file $(distdir) || exit 1; \ | |
388 | - else \ | |
389 | - cp -p $(srcdir)/$$file $(distdir) || exit 1; \ | |
390 | - fi; \ | |
391 | - done | |
392 | - | |
393 | -update-po: Makefile | |
394 | - $(MAKE) $(DOMAIN).pot-update | |
395 | - test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) | |
396 | - $(MAKE) update-gmo | |
397 | - | |
398 | -# General rule for creating PO files. | |
399 | - | |
400 | -.nop.po-create: | |
401 | - @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ | |
402 | - echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ | |
403 | - exit 1 | |
404 | - | |
405 | -# General rule for updating PO files. | |
406 | - | |
407 | -.nop.po-update: | |
408 | - @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ | |
409 | - if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ | |
410 | - tmpdir=`pwd`; \ | |
411 | - echo "$$lang:"; \ | |
412 | - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | |
413 | - echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ | |
414 | - cd $(srcdir); \ | |
415 | - if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ | |
416 | - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ | |
417 | - $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ | |
418 | - *) \ | |
419 | - $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ | |
420 | - esac; \ | |
421 | - }; then \ | |
422 | - if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ | |
423 | - rm -f $$tmpdir/$$lang.new.po; \ | |
424 | - else \ | |
425 | - if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ | |
426 | - :; \ | |
427 | - else \ | |
428 | - echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ | |
429 | - exit 1; \ | |
430 | - fi; \ | |
431 | - fi; \ | |
432 | - else \ | |
433 | - echo "msgmerge for $$lang.po failed!" 1>&2; \ | |
434 | - rm -f $$tmpdir/$$lang.new.po; \ | |
435 | - fi | |
436 | - | |
437 | -$(DUMMYPOFILES): | |
438 | - | |
439 | -update-gmo: Makefile $(GMOFILES) | |
440 | - @: | |
441 | - | |
442 | -# Recreate Makefile by invoking config.status. Explicitly invoke the shell, | |
443 | -# because execution permission bits may not work on the current file system. | |
444 | -# Use @SHELL@, which is the shell determined by autoconf for the use by its | |
445 | -# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. | |
446 | -Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ | |
447 | - cd $(top_builddir) \ | |
448 | - && @SHELL@ ./config.status $(subdir)/$@.in po-directories | |
449 | - | |
450 | -force: | |
451 | - | |
452 | -# Tell versions [3.59,3.63) of GNU make not to export all variables. | |
453 | -# Otherwise a system limit (for SysV at least) may be exceeded. | |
454 | -.NOEXPORT: |
po/Makevars
1 | -# Makefile variables for PO directory in any package using GNU gettext. | |
2 | - | |
3 | -# Usually the message domain is the same as the package name. | |
4 | -DOMAIN = $(PACKAGE) | |
5 | - | |
6 | -# These two variables depend on the location of this directory. | |
7 | -subdir = po | |
8 | -top_builddir = .. | |
9 | - | |
10 | -# These options get passed to xgettext. | |
11 | -XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ | |
12 | - | |
13 | -# This is the copyright holder that gets inserted into the header of the | |
14 | -# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding | |
15 | -# package. (Note that the msgstr strings, extracted from the package's | |
16 | -# sources, belong to the copyright holder of the package.) Translators are | |
17 | -# expected to transfer the copyright for their translations to this person | |
18 | -# or entity, or to disclaim their copyright. The empty string stands for | |
19 | -# the public domain; in this case the translators are expected to disclaim | |
20 | -# their copyright. | |
21 | -COPYRIGHT_HOLDER = Silvan Calarco <silvan.calarco@mambasoft.it> | |
22 | - | |
23 | -# This is the email address or URL to which the translators shall report | |
24 | -# bugs in the untranslated strings: | |
25 | -# - Strings which are not entire sentences, see the maintainer guidelines | |
26 | -# in the GNU gettext documentation, section 'Preparing Strings'. | |
27 | -# - Strings which use unclear terms or require additional context to be | |
28 | -# understood. | |
29 | -# - Strings which make invalid assumptions about notation of date, time or | |
30 | -# money. | |
31 | -# - Pluralisation problems. | |
32 | -# - Incorrect English spelling. | |
33 | -# - Incorrect formatting. | |
34 | -# It can be your email address, or a mailing list address where translators | |
35 | -# can write to without being subscribed, or the URL of a web page through | |
36 | -# which the translators can contact you. | |
37 | -MSGID_BUGS_ADDRESS = | |
38 | - | |
39 | -# This is the list of locale categories, beyond LC_MESSAGES, for which the | |
40 | -# message catalogs shall be used. It is usually empty. | |
41 | -EXTRA_LOCALE_CATEGORIES = | |
42 | - | |
43 | -# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' | |
44 | -# context. Possible values are "yes" and "no". Set this to yes if the | |
45 | -# package uses functions taking also a message context, like pgettext(), or | |
46 | -# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. | |
47 | -USE_MSGCTXT = no | |
48 | - | |
49 | -# These options get passed to msgmerge. | |
50 | -# Useful options are in particular: | |
51 | -# --previous to keep previous msgids of translated messages, | |
52 | -# --quiet to reduce the verbosity. | |
53 | -MSGMERGE_OPTIONS = |
po/POTFILES
1 | - ../src/distroquery.c |
po/POTFILES.in
po/Rules-quot
1 | -# Special Makefile rules for English message catalogs with quotation marks. | |
2 | - | |
3 | -DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot | |
4 | - | |
5 | -.SUFFIXES: .insert-header .po-update-en | |
6 | - | |
7 | -en@quot.po-create: | |
8 | - $(MAKE) en@quot.po-update | |
9 | -en@boldquot.po-create: | |
10 | - $(MAKE) en@boldquot.po-update | |
11 | - | |
12 | -en@quot.po-update: en@quot.po-update-en | |
13 | -en@boldquot.po-update: en@boldquot.po-update-en | |
14 | - | |
15 | -.insert-header.po-update-en: | |
16 | - @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ | |
17 | - if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ | |
18 | - tmpdir=`pwd`; \ | |
19 | - echo "$$lang:"; \ | |
20 | - ll=`echo $$lang | sed -e 's/@.*//'`; \ | |
21 | - LC_ALL=C; export LC_ALL; \ | |
22 | - cd $(srcdir); \ | |
23 | - if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ | |
24 | - if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ | |
25 | - rm -f $$tmpdir/$$lang.new.po; \ | |
26 | - else \ | |
27 | - if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ | |
28 | - :; \ | |
29 | - else \ | |
30 | - echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ | |
31 | - exit 1; \ | |
32 | - fi; \ | |
33 | - fi; \ | |
34 | - else \ | |
35 | - echo "creation of $$lang.po failed!" 1>&2; \ | |
36 | - rm -f $$tmpdir/$$lang.new.po; \ | |
37 | - fi | |
38 | - | |
39 | -en@quot.insert-header: insert-header.sin | |
40 | - sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header | |
41 | - | |
42 | -en@boldquot.insert-header: insert-header.sin | |
43 | - sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header | |
44 | - | |
45 | -mostlyclean: mostlyclean-quot | |
46 | -mostlyclean-quot: | |
47 | - rm -f *.insert-header |
po/boldquot.sed
po/en@boldquot.header
1 | -# All this catalog "translates" are quotation characters. | |
2 | -# The msgids must be ASCII and therefore cannot contain real quotation | |
3 | -# characters, only substitutes like grave accent (0x60), apostrophe (0x27) | |
4 | -# and double quote (0x22). These substitutes look strange; see | |
5 | -# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
6 | -# | |
7 | -# This catalog translates grave accent (0x60) and apostrophe (0x27) to | |
8 | -# left single quotation mark (U+2018) and right single quotation mark (U+2019). | |
9 | -# It also translates pairs of apostrophe (0x27) to | |
10 | -# left single quotation mark (U+2018) and right single quotation mark (U+2019) | |
11 | -# and pairs of quotation mark (0x22) to | |
12 | -# left double quotation mark (U+201C) and right double quotation mark (U+201D). | |
13 | -# | |
14 | -# When output to an UTF-8 terminal, the quotation characters appear perfectly. | |
15 | -# When output to an ISO-8859-1 terminal, the single quotation marks are | |
16 | -# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to | |
17 | -# grave/acute accent (by libiconv), and the double quotation marks are | |
18 | -# transliterated to 0x22. | |
19 | -# When output to an ASCII terminal, the single quotation marks are | |
20 | -# transliterated to apostrophes, and the double quotation marks are | |
21 | -# transliterated to 0x22. | |
22 | -# | |
23 | -# This catalog furthermore displays the text between the quotation marks in | |
24 | -# bold face, assuming the VT100/XTerm escape sequences. | |
25 | -# |
po/en@quot.header
1 | -# All this catalog "translates" are quotation characters. | |
2 | -# The msgids must be ASCII and therefore cannot contain real quotation | |
3 | -# characters, only substitutes like grave accent (0x60), apostrophe (0x27) | |
4 | -# and double quote (0x22). These substitutes look strange; see | |
5 | -# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
6 | -# | |
7 | -# This catalog translates grave accent (0x60) and apostrophe (0x27) to | |
8 | -# left single quotation mark (U+2018) and right single quotation mark (U+2019). | |
9 | -# It also translates pairs of apostrophe (0x27) to | |
10 | -# left single quotation mark (U+2018) and right single quotation mark (U+2019) | |
11 | -# and pairs of quotation mark (0x22) to | |
12 | -# left double quotation mark (U+201C) and right double quotation mark (U+201D). | |
13 | -# | |
14 | -# When output to an UTF-8 terminal, the quotation characters appear perfectly. | |
15 | -# When output to an ISO-8859-1 terminal, the single quotation marks are | |
16 | -# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to | |
17 | -# grave/acute accent (by libiconv), and the double quotation marks are | |
18 | -# transliterated to 0x22. | |
19 | -# When output to an ASCII terminal, the single quotation marks are | |
20 | -# transliterated to apostrophes, and the double quotation marks are | |
21 | -# transliterated to 0x22. | |
22 | -# |
po/insert-header.sin
1 | -# Sed script that inserts the file called HEADER before the header entry. | |
2 | -# | |
3 | -# At each occurrence of a line starting with "msgid ", we execute the following | |
4 | -# commands. At the first occurrence, insert the file. At the following | |
5 | -# occurrences, do nothing. The distinction between the first and the following | |
6 | -# occurrences is achieved by looking at the hold space. | |
7 | -/^msgid /{ | |
8 | -x | |
9 | -# Test if the hold space is empty. | |
10 | -s/m/m/ | |
11 | -ta | |
12 | -# Yes it was empty. First occurrence. Read the file. | |
13 | -r HEADER | |
14 | -# Output the file's contents by reading the next line. But don't lose the | |
15 | -# current line while doing this. | |
16 | -g | |
17 | -N | |
18 | -bb | |
19 | -:a | |
20 | -# The hold space was nonempty. Following occurrences. Do nothing. | |
21 | -x | |
22 | -:b | |
23 | -} |
po/it.po
1 | -# Italian translations for distromatic package. | |
2 | -# Copyright (C) 2013 Silvan Calarco <silvan.calarco@mambasoft.it> | |
3 | -# This file is distributed under the same license as the distromatic package. | |
4 | -# Silvan Calarco <silvan.calarco@mambasoft.it>, 2013. | |
5 | -# | |
6 | -msgid "" | |
7 | -msgstr "" | |
8 | -"Project-Id-Version: distromatic 1.4.1\n" | |
9 | -"Report-Msgid-Bugs-To: silvan.calarco@mambasoft.it\n" | |
10 | -"POT-Creation-Date: 2016-10-21 20:39+0200\n" | |
11 | -"PO-Revision-Date: 2013-10-14 01:19+0200\n" | |
12 | -"Last-Translator: Silvan Calarco <silvan.calarco@mambasoft.it>\n" | |
13 | -"Language-Team: Italian\n" | |
14 | -"Language: it\n" | |
15 | -"MIME-Version: 1.0\n" | |
16 | -"Content-Type: text/plain; charset=UTF-8\n" | |
17 | -"Content-Transfer-Encoding: 8bit\n" | |
18 | -"Plural-Forms: nplurals=2; plural=(n != 1);\n" | |
19 | - | |
20 | -#: src/distroquery.c:186 | |
21 | -msgid "Source" | |
22 | -msgstr "Sorgente" | |
23 | - | |
24 | -#: src/distroquery.c:333 | |
25 | -msgid "Search" | |
26 | -msgstr "Cerca" | |
27 | - | |
28 | -#: src/distroquery.c:371 | |
29 | -msgid "sources" | |
30 | -msgstr "sorgenti" | |
31 | - | |
32 | -#: src/distroquery.c:375 | |
33 | -msgid "files" | |
34 | -msgstr "file" | |
35 | - | |
36 | -#: src/distroquery.c:386 | |
37 | -msgid "Search software packages" | |
38 | -msgstr "Cerca pacchetti software" | |
39 | - | |
40 | -#: src/distroquery.c:476 | |
41 | -msgid "Provider(s)" | |
42 | -msgstr "Fornito da" | |
43 | - | |
44 | -#: src/distroquery.c:627 src/distroquery.c:637 src/distroquery.c:1162 | |
45 | -#: src/distroquery.c:1429 | |
46 | -msgid "Download" | |
47 | -msgstr "Scarica" | |
48 | - | |
49 | -#: src/distroquery.c:647 | |
50 | -msgid "Details" | |
51 | -msgstr "Dettagli" | |
52 | - | |
53 | -#: src/distroquery.c:666 src/distroquery.c:721 | |
54 | -#, c-format | |
55 | -msgid "Other results in " | |
56 | -msgstr "Altri risultati in " | |
57 | - | |
58 | -#: src/distroquery.c:667 src/distroquery.c:722 | |
59 | -#, c-format | |
60 | -msgid "Results in" | |
61 | -msgstr "Risultati in" | |
62 | - | |
63 | -#: src/distroquery.c:670 src/distroquery.c:725 | |
64 | -msgid "for arch " | |
65 | -msgstr "per l'architettura " | |
66 | - | |
67 | -#: src/distroquery.c:686 src/distroquery.c:697 | |
68 | -msgid "provides" | |
69 | -msgstr "fornisce" | |
70 | - | |
71 | -#: src/distroquery.c:738 | |
72 | -msgid "provides directory" | |
73 | -msgstr "fornisce la cartella" | |
74 | - | |
75 | -#: src/distroquery.c:740 | |
76 | -msgid "provides symbolic link" | |
77 | -msgstr "fornisce il link simbolico" | |
78 | - | |
79 | -#: src/distroquery.c:742 | |
80 | -msgid "provides file" | |
81 | -msgstr "fornisce il file" | |
82 | - | |
83 | -#: src/distroquery.c:831 | |
84 | -msgid "result(s) shown" | |
85 | -msgstr "risultati mostrati" | |
86 | - | |
87 | -#: src/distroquery.c:833 | |
88 | -msgid "result(s) found" | |
89 | -msgstr "risultati trovati" | |
90 | - | |
91 | -#: src/distroquery.c:855 | |
92 | -msgid "Search results for" | |
93 | -msgstr "Risultati della ricerca per" | |
94 | - | |
95 | -#: src/distroquery.c:932 | |
96 | -msgid "Updates" | |
97 | -msgstr "Aggiorna" | |
98 | - | |
99 | -#: src/distroquery.c:949 | |
100 | -msgid "Has older version than upstream package in" | |
101 | -msgstr "Ha una versione più vecchia del pacchetto corrente in" | |
102 | - | |
103 | -#: src/distroquery.c:959 | |
104 | -msgid "Has same version as upstream package in" | |
105 | -msgstr "Ha la stessa versione del pacchetto corrente in" | |
106 | - | |
107 | -#: src/distroquery.c:980 | |
108 | -msgid "Packages for" | |
109 | -msgstr "Pacchetti per" | |
110 | - | |
111 | -#: src/distroquery.c:997 | |
112 | -msgid "Needs port to" | |
113 | -msgstr "Richiede il porting per" | |
114 | - | |
115 | -#: src/distroquery.c:1006 | |
116 | -msgid "Latest changes:" | |
117 |