#!/bin/sh # Test of Glade 2 support. tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles empty.glade" cat < empty.glade EOF tmpfiles="$tmpfiles xg-gl-3.pot" : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-gl-3.pot empty.glade 2>/dev/null test $? = 0 || { echo "Skipping test: xgettext was built without Glade support" rm -fr $tmpfiles; exit 77 } tmpfiles="$tmpfiles asciitable.glade2" cat < 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 tmpfiles="$tmpfiles xg-gl-3.tmp xg-gl-3.pot" : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-gl-3.tmp asciitable.glade2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } grep -v 'POT-Creation-Date' < xg-gl-3.tmp > xg-gl-3.pot tmpfiles="$tmpfiles xg-gl-3.ok" 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" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: asciitable.glade2:7 msgid "gedit: ASCII table" msgstr "" #: asciitable.glade2:30 msgid "Insert char" msgstr "" #: 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=$? rm -fr $tmpfiles exit $result