#!/bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test of Glade 2 support. cat < xg-gl-3-empty.glade EOF : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-gl-3.pot xg-gl-3-empty.glade 2>/dev/null test $? = 0 || { echo "Skipping test: xgettext was built without Glade support" Exit 77 } cat < xg-gl-3-asciitable.glade2 no gedit: ASCII table GTK_WINDOW_TOPLEVEL no yes yes GTK_WIN_POS_NONE no 8 yes GTK_BUTTONBOX_END 8 yes yes yes Insert char yes yes yes yes gtk-close yes yes yes yes yes gtk-help yes yes 0 no yes GTK_PACK_END 6 no 8 yes If you wish to insert any of the characters in to the active document, select the character and click the "Insert Char" button or double click the character in the table. GTK_JUSTIFY_LEFT no 0.0 0.5 0 0 yes 0 no no GTK_POLICY_NEVER GTK_POLICY_AUTOMATIC GTK_SHADOW_IN 350 yes yes yes yes GTK_UPDATE_CONTINUOUS yes GTK_UPDATE_CONTINUOUS yes 0 yes yes 0 yes yes 4 yes yes EOF : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-gl-3.tmp xg-gl-3-asciitable.glade2 || Exit 1 # Don't simplify this to "grep ... < xg-gl-3.tmp", otherwise OpenBSD 4.0 grep # only outputs "Binary file (standard input) matches". cat xg-gl-3.tmp | grep -v 'POT-Creation-Date' > xg-gl-3.pot cat <<\EOF > xg-gl-3.ok # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: xg-gl-3-asciitable.glade2:7 msgid "gedit: ASCII table" msgstr "" #: xg-gl-3-asciitable.glade2:30 msgid "Insert char" msgstr "" #: xg-gl-3-asciitable.glade2:74 msgid "" "If you wish to insert any of the characters in to the active \n" "document, select the character and click the \"Insert Char\" \n" "button or double click the character in the table." msgstr "" EOF : ${DIFF=diff} ${DIFF} xg-gl-3.ok xg-gl-3.pot result=$? exit $result