[ease/autotools: 2/2] First shot at using correctly Git.



commit 52d2a4d4c8e03cc7a26c645e72743aea494915c8
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date:   Thu May 20 22:55:51 2010 +0200

    First shot at using correctly Git.

 AUTHORS                |    2 +
 ChangeLog              |    7 ++++++
 Makefile.am            |   57 ++++++++++++++++++++++++++++++++++++++++++++++++
 README                 |   23 +++++++++++++++++++
 configure.ac           |   44 +++++++++++++++++++++++++++++++++++++
 po/ChangeLog           |   12 ++++++++++
 po/Makevars            |   41 ++++++++++++++++++++++++++++++++++
 po/POTFILES.in         |    2 +
 po/Rules-quot          |   47 +++++++++++++++++++++++++++++++++++++++
 po/boldquot.sed        |   10 ++++++++
 po/en boldquot header  |   25 +++++++++++++++++++++
 po/en quot header      |   22 ++++++++++++++++++
 po/insert-header.sin   |   23 +++++++++++++++++++
 po/quot.sed            |    6 +++++
 po/remove-potcdate.sin |   19 ++++++++++++++++
 15 files changed, 340 insertions(+), 0 deletions(-)
---
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..43f918f
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,2 @@
+Nate Stedman <natesm gmail com>
+Stéphane Maniaci <stephane maniaci gmail com>
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..d0abef7
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,7 @@
+2010-05-20  gettextize  <bug-gnu-gettext gnu org>
+
+	* Makefile.am (SUBDIRS): New variable.
+	(ACLOCAL_AMFLAGS): New variable.
+	(EXTRA_DIST): Add config.rpath, m4/ChangeLog.
+	* configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..efa9ebb
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,57 @@
+NULL =
+
+bin_PROGRAMS = ease
+
+AM_CPPFLAGS = \
+	$(EASE_CFLAGS) \
+	-include $(CONFIG_HEADER) \
+	$(NULL)
+
+ease_SOURCES = \
+	src/Actor.vala \
+	src/Document.vala \
+	src/EditorEmbed.vala \
+	src/EditorWindow.vala \
+	src/ElementMap.vala \
+	src/ElementMapValue.vala \
+	src/Element.vala \
+	src/Enums.vala \
+	src/Handle.vala \
+	src/HTMLExporter.vala \
+	src/ImageActor.vala \
+	src/MainToolbar.vala \
+	src/Main.vala \
+	src/OpenDialog.vala \
+	src/Player.vala \
+	src/ScrollableEmbed.vala \
+	src/SlideActor.vala \
+	src/SlideButtonPanel.vala \
+	src/SlideButton.vala \
+	src/SlidePane.vala \
+	src/Slide.vala \
+	src/TextActor.vala \
+	src/Theme.vala \
+	src/TransitionPane.vala \
+	src/Transitions.vala \
+	src/UndoActions.vala \
+	src/UndoController.vala \
+	src/VideoActor.vala \
+	src/WelcomeActor.vala \
+	src/WelcomeWindow.vala \
+	src/ZoomSlider.vala \
+	$(NULL)
+
+ease_VALAFLAGS = $(EASE_PACKAGES)
+
+SUBDIRS = po
+ease_LDADD = \
+	$(EASE_LIBS) \
+	$(NULL)
+
+EXTRA_DIST = config.rpath m4/ChangeLog  \
+	$(NULL)
+
+DISTCLEANFILES = \
+	$(NULL)
+
+ACLOCAL_AMFLAGS = -I m4
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
diff --git a/README b/README
new file mode 100644
index 0000000..9b685db
--- /dev/null
+++ b/README
@@ -0,0 +1,23 @@
+Ease: A presentation application for the GNOME Desktop
+
+Building
+----------------------
+To build Ease, install the following tools:
+
+- valac
+- gcc (or clang)
+- make
+
+As well as these dependencies:
+
+- gtk+2.0
+- pango
+- clutter-gst-1.0
+- clutter-1.0
+- clutter-gtk-0.10
+- gee-1.0
+- libxml-2.0
+- cogl-1.0
+- gio-2.0
+
+Then, type `make all` or `make clang`.
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..7659ba1
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,44 @@
+AC_INIT([Ease], [0.1], [https://bugzilla.gnome.org/enter_bug.cgi?product=ease], [ease], [http://live.gnome.org/Ease])
+
+AC_PREREQ([2.59])
+
+AC_CONFIG_FILES([Makefile po/Makefile.in])
+AC_CONFIG_SRCDIR([Makefile.am])
+AC_CONFIG_HEADERS([config.h])
+
+AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2])
+
+# Enable silent rules is available
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+AC_PROG_CC
+AC_PROG_CC_STDC
+AM_PROG_VALAC([0.8.1])
+AC_PROG_INSTALL
+AC_PROG_INTLTOOL([0.35])
+
+AM_PROG_LIBTOOL
+
+dnl this is preferred, but doesn't work for me :
+dnl LT_PREREQ([2.2.6])
+
+GNOME_COMPILE_WARNINGS([maximum])
+GNOME_MAINTAINER_MODE_DEFINES
+
+pkg_modules="clutter-gtk-0.10 >= 0.10"
+
+EASE_PACKAGES="--pkg glib-2.0 --pkg gtk+-2.0 --pkg clutter-1.0 --pkg gdk-2.0 --pkg libxml-2.0 --pkg gee-1.0 --pkg clutter-gtk-0.10 --pkg cogl-1.0 --pkg gio-2.0 --pkg clutter-gst-1.0"
+
+PKG_CHECK_MODULES(EASE, [$pkg_modules])
+AC_SUBST(EASE_CFLAGS)
+AC_SUBST(EASE_LIBS)
+AC_SUBST(EASE_PACKAGES)
+
+dnl internationalization
+GETTEXT_PACKAGE=ease
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package])
+AC_SUBST(GETTEXT_PACKAGE)
+AM_GLIB_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
+
+AC_OUTPUT
diff --git a/po/ChangeLog b/po/ChangeLog
new file mode 100644
index 0000000..d1557fa
--- /dev/null
+++ b/po/ChangeLog
@@ -0,0 +1,12 @@
+2010-05-20  gettextize  <bug-gnu-gettext gnu org>
+
+	* Makefile.in.in: New file, from gettext-0.17.
+	* Rules-quot: New file, from gettext-0.17.
+	* boldquot.sed: New file, from gettext-0.17.
+	* en boldquot header: New file, from gettext-0.17.
+	* en quot header: New file, from gettext-0.17.
+	* insert-header.sin: New file, from gettext-0.17.
+	* quot.sed: New file, from gettext-0.17.
+	* remove-potcdate.sin: New file, from gettext-0.17.
+	* POTFILES.in: New file.
+
diff --git a/po/Makevars b/po/Makevars
new file mode 100644
index 0000000..f9ecb4e
--- /dev/null
+++ b/po/Makevars
@@ -0,0 +1,41 @@
+# Makefile variables for PO directory in any package using GNU gettext.
+
+# Usually the message domain is the same as the package name.
+DOMAIN = $(PACKAGE)
+
+# These two variables depend on the location of this directory.
+subdir = po
+top_builddir = ..
+
+# These options get passed to xgettext.
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+
+# This is the copyright holder that gets inserted into the header of the
+# $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
+# package.  (Note that the msgstr strings, extracted from the package's
+# sources, belong to the copyright holder of the package.)  Translators are
+# expected to transfer the copyright for their translations to this person
+# or entity, or to disclaim their copyright.  The empty string stands for
+# the public domain; in this case the translators are expected to disclaim
+# their copyright.
+COPYRIGHT_HOLDER = Nate Stedman <natesm gmail com>
+
+# This is the email address or URL to which the translators shall report
+# bugs in the untranslated strings:
+# - Strings which are not entire sentences, see the maintainer guidelines
+#   in the GNU gettext documentation, section 'Preparing Strings'.
+# - Strings which use unclear terms or require additional context to be
+#   understood.
+# - Strings which make invalid assumptions about notation of date, time or
+#   money.
+# - Pluralisation problems.
+# - Incorrect English spelling.
+# - Incorrect formatting.
+# It can be your email address, or a mailing list address where translators
+# can write to without being subscribed, or the URL of a web page through
+# which the translators can contact you.
+MSGID_BUGS_ADDRESS = https://bugzilla.gnome.org/enter_bug.cgi?product=ease
+
+# This is the list of locale categories, beyond LC_MESSAGES, for which the
+# message catalogs shall be used.  It is usually empty.
+EXTRA_LOCALE_CATEGORIES =
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..9c4fb68
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,2 @@
+# List of source files which contain translatable strings.
+../src/*.vala
diff --git a/po/Rules-quot b/po/Rules-quot
new file mode 100644
index 0000000..9c2a995
--- /dev/null
+++ b/po/Rules-quot
@@ -0,0 +1,47 @@
+# Special Makefile rules for English message catalogs with quotation marks.
+
+DISTFILES.common.extra1 = quot.sed boldquot.sed en quot header en boldquot header insert-header.sin Rules-quot
+
+.SUFFIXES: .insert-header .po-update-en
+
+en quot po-create:
+	$(MAKE) en quot po-update
+en boldquot po-create:
+	$(MAKE) en boldquot po-update
+
+en quot po-update: en quot po-update-en
+en boldquot po-update: en boldquot po-update-en
+
+.insert-header.po-update-en:
+	@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
+	if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
+	tmpdir=`pwd`; \
+	echo "$$lang:"; \
+	ll=`echo $$lang | sed -e 's/@.*//'`; \
+	LC_ALL=C; export LC_ALL; \
+	cd $(srcdir); \
+	if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -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 \
+	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
+	    rm -f $$tmpdir/$$lang.new.po; \
+	  else \
+	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
+	      :; \
+	    else \
+	      echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
+	      exit 1; \
+	    fi; \
+	  fi; \
+	else \
+	  echo "creation of $$lang.po failed!" 1>&2; \
+	  rm -f $$tmpdir/$$lang.new.po; \
+	fi
+
+en quot insert-header: insert-header.sin
+	sed -e '/^#/d' -e 's/HEADER/en quot header/g' $(srcdir)/insert-header.sin > en quot insert-header
+
+en boldquot insert-header: insert-header.sin
+	sed -e '/^#/d' -e 's/HEADER/en boldquot header/g' $(srcdir)/insert-header.sin > en boldquot insert-header
+
+mostlyclean: mostlyclean-quot
+mostlyclean-quot:
+	rm -f *.insert-header
diff --git a/po/boldquot.sed b/po/boldquot.sed
new file mode 100644
index 0000000..4b937aa
--- /dev/null
+++ b/po/boldquot.sed
@@ -0,0 +1,10 @@
+s/"\([^"]*\)"/â??\1â??/g
+s/`\([^`']*\)'/â??\1â??/g
+s/ '\([^`']*\)' / â??\1â?? /g
+s/ '\([^`']*\)'$/ â??\1â??/g
+s/^'\([^`']*\)' /â??\1â?? /g
+s/â??â??/""/g
+s/â??/â??/g
+s/â??/â??/g
+s/â??/â??/g
+s/â??/â??/g
diff --git a/po/en boldquot header b/po/en boldquot header
new file mode 100644
index 0000000..fedb6a0
--- /dev/null
+++ b/po/en boldquot header
@@ -0,0 +1,25 @@
+# All this catalog "translates" are quotation characters.
+# The msgids must be ASCII and therefore cannot contain real quotation
+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
+# and double quote (0x22). These substitutes look strange; see
+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
+#
+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
+# It also translates pairs of apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
+# and pairs of quotation mark (0x22) to
+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
+#
+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
+# When output to an ISO-8859-1 terminal, the single quotation marks are
+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
+# grave/acute accent (by libiconv), and the double quotation marks are
+# transliterated to 0x22.
+# When output to an ASCII terminal, the single quotation marks are
+# transliterated to apostrophes, and the double quotation marks are
+# transliterated to 0x22.
+#
+# This catalog furthermore displays the text between the quotation marks in
+# bold face, assuming the VT100/XTerm escape sequences.
+#
diff --git a/po/en quot header b/po/en quot header
new file mode 100644
index 0000000..a9647fc
--- /dev/null
+++ b/po/en quot header
@@ -0,0 +1,22 @@
+# All this catalog "translates" are quotation characters.
+# The msgids must be ASCII and therefore cannot contain real quotation
+# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
+# and double quote (0x22). These substitutes look strange; see
+# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
+#
+# This catalog translates grave accent (0x60) and apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019).
+# It also translates pairs of apostrophe (0x27) to
+# left single quotation mark (U+2018) and right single quotation mark (U+2019)
+# and pairs of quotation mark (0x22) to
+# left double quotation mark (U+201C) and right double quotation mark (U+201D).
+#
+# When output to an UTF-8 terminal, the quotation characters appear perfectly.
+# When output to an ISO-8859-1 terminal, the single quotation marks are
+# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
+# grave/acute accent (by libiconv), and the double quotation marks are
+# transliterated to 0x22.
+# When output to an ASCII terminal, the single quotation marks are
+# transliterated to apostrophes, and the double quotation marks are
+# transliterated to 0x22.
+#
diff --git a/po/insert-header.sin b/po/insert-header.sin
new file mode 100644
index 0000000..b26de01
--- /dev/null
+++ b/po/insert-header.sin
@@ -0,0 +1,23 @@
+# Sed script that inserts the file called HEADER before the header entry.
+#
+# At each occurrence of a line starting with "msgid ", we execute the following
+# commands. At the first occurrence, insert the file. At the following
+# occurrences, do nothing. The distinction between the first and the following
+# occurrences is achieved by looking at the hold space.
+/^msgid /{
+x
+# Test if the hold space is empty.
+s/m/m/
+ta
+# Yes it was empty. First occurrence. Read the file.
+r HEADER
+# Output the file's contents by reading the next line. But don't lose the
+# current line while doing this.
+g
+N
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}
diff --git a/po/quot.sed b/po/quot.sed
new file mode 100644
index 0000000..0122c46
--- /dev/null
+++ b/po/quot.sed
@@ -0,0 +1,6 @@
+s/"\([^"]*\)"/â??\1â??/g
+s/`\([^`']*\)'/â??\1â??/g
+s/ '\([^`']*\)' / â??\1â?? /g
+s/ '\([^`']*\)'$/ â??\1â??/g
+s/^'\([^`']*\)' /â??\1â?? /g
+s/â??â??/""/g
diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin
new file mode 100644
index 0000000..2436c49
--- /dev/null
+++ b/po/remove-potcdate.sin
@@ -0,0 +1,19 @@
+# Sed script that remove the POT-Creation-Date line in the header entry
+# from a POT file.
+#
+# The distinction between the first and the following occurrences of the
+# pattern is achieved by looking at the hold space.
+/^"POT-Creation-Date: .*"$/{
+x
+# Test if the hold space is empty.
+s/P/P/
+ta
+# Yes it was empty. First occurrence. Remove the line.
+g
+d
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]