diff --git a/.hgignore b/.hgignore index 64de9022..f0f65547 100644 --- a/.hgignore +++ b/.hgignore @@ -1,9 +1,7 @@ syntax: glob - .git/ build/ autom4te.cache/ - *-old *-old.c *.orig @@ -31,11 +29,14 @@ ltmain.sh missing mkinstalldirs m4/ugly-stamp.m4 - syntax: regexp - ^po(-gsv)?/(Makefile\.in\.in|dist|missing|notexist|pot|intltool-update)$ - Makefile\.am ^moo/mooapp/mooapp-credits\.h ^moo/mooutils/stock-(moo|medit)\.h +glob:*.tmp +glob:m4/libtool.m4 +glob:m4/lt~obsolete.m4 +glob:m4/ltsugar.m4 +glob:m4/ltversion.m4 +glob:m4/ltoptions.m4 diff --git a/TODO b/TODO new file mode 100644 index 00000000..0ba9dc28 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +get new ac_python_devel diff --git a/m4/moo-python.m4 b/m4/moo-python.m4 index 5dce2cd9..b218738e 100644 --- a/m4/moo-python.m4 +++ b/m4/moo-python.m4 @@ -38,6 +38,10 @@ Please check your Python installation.]) PYTHON_INCLUDES=$python_path fi + if test x$MOO_OS_MINGW = xyes; then + PYTHON_INCLUDES=`echo "$PYTHON_INCLUDES" | sed 's%\\\\%/%g'` + fi + AC_MSG_RESULT([$PYTHON_INCLUDES]) AC_SUBST([PYTHON_INCLUDES]) fi @@ -62,10 +66,21 @@ Please check your Python installation.]) fi fi - PYTHON_LIBS=`$PYTHON -c "from distutils.sysconfig import *; \ - from string import join; \ - print '-L' + PREFIX + '/lib', \ - '-lpython';"`$py_version + if test x$MOO_OS_MINGW = xyes; then + PYTHON_LIBS=`$PYTHON -c "from distutils.sysconfig import *; \ + from string import join; \ + print '-L' + PREFIX + '/libs', \ + '-lpython';"`$py_version + else + PYTHON_LIBS=`$PYTHON -c "from distutils.sysconfig import *; \ + from string import join; \ + print '-L' + PREFIX + '/lib', \ + '-lpython';"`$py_version + fi + fi + + if test x$MOO_OS_MINGW = xyes; then + PYTHON_LIBS=`echo "$PYTHON_LIBS" | sed 's%\\\\%/%g'` fi AC_MSG_RESULT([$PYTHON_LIBS]) @@ -79,10 +94,15 @@ Please check your Python installation.]) if test "x$PYTHON_EXTRA_LIBS" = "x"; then PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ - print conf('LOCALMODLIBS'), conf('LIBS')"` + print conf('LOCALMODLIBS') or '', conf('LIBS') or ''"` PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ conf = distutils.sysconfig.get_config_var; \ - print conf('LDFLAGS')"` + print conf('LDFLAGS') or ''"` + fi + + if test x$MOO_OS_MINGW = xyes; then + PYTHON_EXTRA_LIBS=`echo "$PYTHON_EXTRA_LIBS" | sed 's%\\\\%/%g'` + PYTHON_EXTRA_LDFLAGS=`echo "$PYTHON_EXTRA_LDFLAGS" | sed 's%\\\\%/%g'` fi AC_MSG_CHECKING([Python extra libs]) @@ -106,25 +126,25 @@ Please check your Python installation.]) # checks python stuff when building for unix # AC_DEFUN([_MOO_AC_CHECK_PYTHON_UNIX],[ - AM_PATH_PYTHON([$1],[ - _MOO_AC_PYTHON_DEVEL([ - python_found=yes - ],[ - AC_MSG_WARN([Found python interpreter but no development headers or libraries]) - python_found=no - ]) + AM_PATH_PYTHON([$1],[ + _MOO_AC_PYTHON_DEVEL([ + _moo_python_found=yes ],[ - python_found=no + AC_MSG_WARN([Found python interpreter but no development headers or libraries]) + python_found=no ]) + ],[ + AC_MSG_ERROR([Python interpreter not found but it is required to build medit]) + ]) - if test x$python_found = xyes; then - m4_if([$2],[],[:],[$2]) - else - PYTHON_INCLUDES="" - PYTHON_LIBS="" - PYTHON_EXTRA_LIBS="" - m4_if([$3],[],[:],[$3]) - fi + if test x$python_found = xyes; then + m4_if([$2],[],[:],[$2]) + else + PYTHON_INCLUDES="" + PYTHON_LIBS="" + PYTHON_EXTRA_LIBS="" + m4_if([$3],[],[:],[$3]) + fi ]) @@ -135,7 +155,7 @@ AC_DEFUN([_MOO_AC_CHECK_PYTHON_UNIX],[ AC_DEFUN([MOO_AC_CHECK_PYTHON],[ AC_MSG_NOTICE([checking for headers and libs required to compile python extensions]) AC_REQUIRE([MOO_AC_CHECK_OS]) - if test x$MOO_OS_MINGW = xyes; then + if test x$MOO_OS_MINGW = xyes -a x$cross_compiling = xyes; then MOO_AM_PYTHON_DEVEL_CROSS_MINGW([$2],[$3]) else _MOO_AC_CHECK_PYTHON_UNIX([$1],[$2],[$3]) diff --git a/m4/ugly-stamp.m4 b/m4/ugly-stamp.m4 index ea842896..282447a1 100644 --- a/m4/ugly-stamp.m4 +++ b/m4/ugly-stamp.m4 @@ -4,6 +4,11 @@ AC_DEFUN([UGLY_FAKE_FUN],[ 7a7f11d6c077a99463a4fbefe1c09a20 moo-os.m4 bf3d04c32399bca1bbe75282947e1041 moo-version.m4 5e18022b42d6f056ef24b748181c848b ugly.m4 +f3434833becc2338bc7ce8ff0a925987 libtool.m4 +152941207b2a2348e1687f6d9430fdd4 ltoptions.m4 +bc2f6032c98896249eadb56177c7d357 ltsugar.m4 +8ad9271cd6f868874ffff4223e2ff0ee ltversion.m4 +13eeb5a2026d18ffe6428827fc7ab406 lt~obsolete.m4 7e6e4832fed0fed1850ee168e65d9d4f moo-comps.m4 ab00dc3cc5a6899ecd789fa5d5070abd moo-debug.m4 d86d9c0fc3a7e74d0cad083d0b7fee15 moo-dirs.m4 @@ -17,7 +22,7 @@ d5aeeaa47fa88297cc36e17fbbc47102 moo-lib.m4 6491d45e29f5f2020a545049d6221092 moo-pcre.m4 73c409392837c8c504541c1fa517f3e0 moo-pygtk.m4 87cb0e8cdecb72d87d7404eb20546f26 moo-python-cross-mingw.m4 -12a5998e546fe6991597af5dc0cebda1 moo-python.m4 +bda375dcb0e9befabf652b123ce042ad moo-python.m4 9b1a1ecc886394e26ba9ff62a057d687 moo-xml.m4 bc98c93988f2674585e76829e8b172e0 configure.ac ]) diff --git a/moo/mooapp/smclient/eggsmclient.c b/moo/mooapp/smclient/eggsmclient.c index 43e8f6f5..740a7af6 100644 --- a/moo/mooapp/smclient/eggsmclient.c +++ b/moo/mooapp/smclient/eggsmclient.c @@ -20,7 +20,7 @@ #include "config.h" #include -#include +#include #include "eggsmclient.h" #include "eggsmclient-private.h" diff --git a/moo/mooutils/mooaccelbutton.c b/moo/mooutils/mooaccelbutton.c index 0755567e..109d4e1f 100644 --- a/moo/mooutils/mooaccelbutton.c +++ b/moo/mooutils/mooaccelbutton.c @@ -18,6 +18,7 @@ #include "mooutils/moodialogs.h" #include "mooutils/mooi18n.h" #include "glade/mooaccelbutton-gxml.h" +#include #include diff --git a/po/moo.pot b/po/moo.pot deleted file mode 100644 index 6e4cf60e..00000000 --- a/po/moo.pot +++ /dev/null @@ -1,2041 +0,0 @@ -# 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" -"POT-Creation-Date: 2008-09-27 17:45-0500\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" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - -#. error message for wrong commmand line -#: ../medit/main.c:98 -#, c-format -msgid "Invalid value '%s' for option %s" -msgstr "" - -#. help message for command line option --new-app -#: ../medit/main.c:105 -msgid "Run new instance of application" -msgstr "" - -#. help message for command line option --use-session -#: ../medit/main.c:111 -msgid "Load and save session" -msgstr "" - -#. help message for command line option --pid=PID -#: ../medit/main.c:117 -msgid "Use existing instance with process id PID" -msgstr "" - -#. "PID" part in "--pid=PID" -#: ../medit/main.c:118 -msgid "PID" -msgstr "" - -#. help message for command line option --app-name=NAME -#: ../medit/main.c:120 -msgid "Set instance name to NAME if it's not already running" -msgstr "" - -#. "NAME" part in "--app-name=NAME" -#: ../medit/main.c:121 -msgid "NAME" -msgstr "" - -#. help message for command line option --new-window -#: ../medit/main.c:123 -msgid "Open file(s) in a new window" -msgstr "" - -#. help message for command line option --new-tab -#: ../medit/main.c:125 -msgid "Open file(s) in a new tab" -msgstr "" - -#. help message for command line option --line=LINE -#: ../medit/main.c:131 -msgid "Open file and position cursor on line LINE" -msgstr "" - -#. "LINE" part in --line=LINE -#: ../medit/main.c:132 -msgid "LINE" -msgstr "" - -#. help message for command line option --encoding=ENCODING -#: ../medit/main.c:134 -msgid "Use provided character encoding" -msgstr "" - -#. "ENCODING" part in --encoding=ENCODING -#: ../medit/main.c:135 -msgid "ENCODING" -msgstr "" - -#. help message for command line option --reload -#: ../medit/main.c:137 -msgid "Automatically reload file if it was modified on disk" -msgstr "" - -#. help message for command line option --exec CODE -#: ../medit/main.c:145 -msgid "Execute python code in an existing instance" -msgstr "" - -#. "CODE" part in --exec CODE -#: ../medit/main.c:146 -msgid "CODE" -msgstr "" - -#. help message for command line option --exec-file FILE -#: ../medit/main.c:148 -msgid "Execute python file in an existing instance" -msgstr "" - -#. "FILE" part in --exec-file FILE -#: ../medit/main.c:149 -msgid "FILE" -msgstr "" - -#. help message for command line option --version -#: ../medit/main.c:151 -msgid "Show version information and exit" -msgstr "" - -#. "FILES" part in "medit [OPTION...] [FILES]" -#: ../medit/main.c:153 -msgid "FILES" -msgstr "" - -#. error message for wrong commmand line -#: ../medit/main.c:169 ../medit/main.c:177 -#, c-format -msgid "%s and %s options may not be used simultaneously\n" -msgstr "" - -#: ../medit/medit.desktop.in.h:1 -msgid "Text editor" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooapp/glade/mooappabout-credits.glade.h:2 -msgid "Dialog title|Credits" -msgstr "" - -#. Tab label in Credits dialog -#: ../moo/mooapp/glade/mooappabout-credits.glade.h:4 -msgid "Thanks" -msgstr "" - -#. Tab label in Credits dialog -#: ../moo/mooapp/glade/mooappabout-credits.glade.h:6 -msgid "Translated by" -msgstr "" - -#. Tab label in Credits dialog -#: ../moo/mooapp/glade/mooappabout-credits.glade.h:8 -msgid "Written by" -msgstr "" - -#. Credits button label in About dialog -#: ../moo/mooapp/glade/mooappabout-dialog.glade.h:2 -msgid "C_redits" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooapp/glade/mooappabout-dialog.glade.h:4 -msgid "Dialog title|About" -msgstr "" - -#. License button label in About dialog -#: ../moo/mooapp/glade/mooappabout-dialog.glade.h:6 -msgid "_License" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooapp/glade/mooappabout-license.glade.h:2 -msgid "Dialog title|License" -msgstr "" - -#. Translators: this goes into About box, under Translated by tab, -#. do not ignore it, markup isn't always used. It should be something -#. like "Some Guy ", with lines separated by \n -#: ../moo/mooapp/mooappabout.c:58 -msgid "translator-credits" -msgstr "" - -#. Translators: this goes into About box, under Translated by tab, -#. this must be valid html markup, e.g. -#. "Some Guy <someguy@domain.net>" -#. Lines must be separated by
, like "First guy
Second Guy" -#: ../moo/mooapp/mooappabout.c:63 -msgid "translator-credits-markup" -msgstr "" - -#. Prefs dialog title, like "medit Preferences" -#: ../moo/mooapp/mooapp.c:1373 -#, c-format -msgid "%s Preferences" -msgstr "" - -#. Output filter for shell commands -#: ../moo/mooedit/filters.xml.h:2 -msgid "Filter|Bison" -msgstr "" - -#. Output filter for shell commands -#: ../moo/mooedit/filters.xml.h:4 -msgid "Filter|Default" -msgstr "" - -#. Output filter for shell commands -#: ../moo/mooedit/filters.xml.h:6 -msgid "Filter|LaTeX" -msgstr "" - -#. Output filter for shell commands -#: ../moo/mooedit/filters.xml.h:8 -msgid "Filter|Make" -msgstr "" - -#. Output filter for shell commands -#: ../moo/mooedit/filters.xml.h:10 -msgid "Filter|None" -msgstr "" - -#. Output filter for shell commands -#: ../moo/mooedit/filters.xml.h:12 -msgid "Filter|Python" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:1 -msgid "Default language" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:2 -msgid "Dialogs" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:3 -msgid "File filters" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:4 -msgid "Font and colors" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:5 -msgid "Highlighting" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:6 -msgid "Keyboard" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:7 -msgid "Language-specific options" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:8 -msgid "Loading" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:9 -msgid "Misc" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:10 -msgid "Saving" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:11 -msgid "Sessions" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:12 -msgid "Text wrapping" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:13 -msgid "Backspace key unindents" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:14 -msgid "Color scheme:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:15 -msgid "" -"Comma-separated list of encodings to try when opening a file. 'LOCALE' means " -"current locale encoding." -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:16 -msgid "Do not split words" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:17 -msgid "Do not use tabs for indentation" -msgstr "" - -#. Part of the phrase "Draw right margin at column [XX]" -#: ../moo/mooedit/glade/mooeditprefs.glade.h:19 -msgid "Draw right margin" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:20 -msgid "Enable auto indentation" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:21 -msgid "Enable session support" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:22 -msgid "Enable syntax highlighting" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:23 -msgid "Enable text wrapping" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:24 -msgid "Encoding for new files:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:25 -msgid "Encodings to autodetect:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:26 -msgid "Ensure trailing newline" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:27 -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:4 -msgid "Extensions:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:28 -msgid "Font:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:29 -msgid "Highlight current line" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:30 -msgid "Highlight matching brackets" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:31 -msgid "Highlight mismatching brackets" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:32 -msgid "Indent width:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:33 -msgid "Language:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:34 -msgid "Make backups" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:35 -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:6 -msgid "Mime types:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:36 -msgid "Open and Save As dialogs show current document folder" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:37 -#: ../moo/mooedit/glade/moousertools.glade.h:9 -msgid "Options:" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:38 -msgid "Remove trailing spaces" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:39 -msgid "Show line numbers" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:40 -msgid "Show tabs" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:41 -msgid "Show trailing spaces" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:42 -msgid "Smart Home and End" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:43 -msgid "Tab key indents" -msgstr "" - -#: ../moo/mooedit/glade/mooeditprefs.glade.h:44 -msgid "Tab width:" -msgstr "" - -#. Part of the phrase "Draw right margin at column [XX]" -#: ../moo/mooedit/glade/mooeditprefs.glade.h:46 -msgid "at column" -msgstr "" - -#: ../moo/mooedit/glade/mooeditsavemult.glade.h:1 -msgid "Select the documents you want to save:" -msgstr "" - -#: ../moo/mooedit/glade/mooedittools-exe.glade.h:1 -msgid "Filter:" -msgstr "" - -#: ../moo/mooedit/glade/mooedittools-exe.glade.h:2 -msgid "Input:" -msgstr "" - -#: ../moo/mooedit/glade/mooedittools-exe.glade.h:3 -msgid "Output:" -msgstr "" - -#: ../moo/mooedit/glade/moopluginprefs.glade.h:1 -msgid "Author:" -msgstr "" - -#: ../moo/mooedit/glade/moopluginprefs.glade.h:2 -msgid "Description:" -msgstr "" - -#: ../moo/mooedit/glade/moopluginprefs.glade.h:3 -msgid "Version:" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:1 -msgid "Center:" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:2 -msgid "Ellipsize long lines" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:3 -msgid "Footer" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:4 -msgid "Header" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:5 -msgid "Left:" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:6 -msgid "Print footer" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:7 -msgid "Print header" -msgstr "" - -#. Part of the phrase "Print line numbers" "every" "1" "lines" -#: ../moo/mooedit/glade/mooprint.glade.h:9 -msgid "Print line numbers" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:10 -msgid "Print separator line" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:11 -msgid "Print using text styles" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:12 -msgid "Right:" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:13 -msgid "Use custom font:" -msgstr "" - -#: ../moo/mooedit/glade/mooprint.glade.h:14 -msgid "Wrap long lines" -msgstr "" - -#. Part of the phrase "Print line numbers" "every" "1" "lines" -#: ../moo/mooedit/glade/mooprint.glade.h:16 -msgid "every" -msgstr "" - -#. Part of the phrase "Print line numbers" "every" "1" "lines" -#: ../moo/mooedit/glade/mooprint.glade.h:18 -msgid "lines" -msgstr "" - -#: ../moo/mooedit/glade/mooprintpreview.glade.h:1 -#: ../moo/mooedit/mooeditwindow.c:679 ../moo/mooedit/mooeditwindow.c:680 -msgid "Print..." -msgstr "" - -#: ../moo/mooedit/glade/mooquicksearch.glade.h:1 -msgid "_Case sensitive" -msgstr "" - -#: ../moo/mooedit/glade/mooquicksearch.glade.h:2 -msgid "_Regular expression" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:1 -msgid "Case sensitive" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:2 -msgid "Don't prompt on replace" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:3 -#: ../moo/mooedit/plugins/moofind.c:1070 -msgid "Find" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:4 -msgid "Find backwards" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:5 -msgid "From cursor" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:6 -msgid "Literal replacement" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:7 -msgid "Options" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:8 -msgid "Regular expression" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:9 -msgid "Replace With" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:10 -msgid "Replacement text:" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:11 -msgid "Selected text" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:12 -msgid "Text to find:" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind.glade.h:13 -msgid "Whole words only" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind-prompt.glade.h:1 -#: ../moo/mooedit/mooeditwindow.c:464 -msgid "Find _Next" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind-prompt.glade.h:2 -msgid "Replace _All" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind-prompt.glade.h:3 -msgid "Replace?" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind-prompt.glade.h:4 -msgid "Sto_p" -msgstr "" - -#: ../moo/mooedit/glade/mootextfind-prompt.glade.h:5 -msgid "_Replace" -msgstr "" - -#: ../moo/mooedit/glade/mootextgotoline.glade.h:1 -#: ../moo/mooedit/mooeditwindow.c:514 -msgid "Go to Line" -msgstr "" - -#: ../moo/mooedit/glade/mootextgotoline.glade.h:2 -msgid "Go to line:" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:1 -msgid "Command type:" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:2 -msgid "Context menu" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:3 -msgid "Delete item" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:4 -msgid "Enabled" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:5 -msgid "Files:" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:6 -msgid "Move item down" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:7 -msgid "Move item up" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:8 -msgid "New item" -msgstr "" - -#: ../moo/mooedit/glade/moousertools.glade.h:10 -msgid "Tools menu" -msgstr "" - -#. menu item label -#: ../moo/mooedit/medit.xml.h:2 -msgid "Pa_nes" -msgstr "" - -#. menu item label -#: ../moo/mooedit/medit.xml.h:4 -msgid "_Document" -msgstr "" - -#. menu item label -#: ../moo/mooedit/medit.xml.h:6 -msgid "_File" -msgstr "" - -#. menu item label -#: ../moo/mooedit/medit.xml.h:8 -msgid "_Search" -msgstr "" - -#: ../moo/mooedit/medit.xml.h:9 -msgid "_Tools" -msgstr "" - -#. menu item label -#: ../moo/mooedit/medit.xml.h:11 -msgid "_View" -msgstr "" - -#. menu item label -#: ../moo/mooedit/medit.xml.h:13 -msgid "_Window" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:85 -msgid "Output|None" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:86 -msgid "Output|None, asynchronous" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:88 -msgid "Output|Console" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:90 -msgid "Output|Output pane" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:91 -msgid "Output|Insert into the document" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:92 -msgid "Output|New document" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:800 -msgid "Shell command" -msgstr "" - -#. Translators: these are kinds of input for a shell command, do not translate the part before | -#: ../moo/mooedit/moocommand-exe.c:1041 -msgid "Input|None" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:1041 -msgid "Input|Selected lines" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:1041 -msgid "Input|Selection" -msgstr "" - -#: ../moo/mooedit/moocommand-exe.c:1041 -msgid "Input|Whole document" -msgstr "" - -#: ../moo/mooedit/moocommand-lua.c:251 -msgid "Lua script" -msgstr "" - -#. Translators: number of documents here is always greater than one, so -#. ignore singular form (which is simply copy of the plural here) -#: ../moo/mooedit/mooeditdialogs.c:363 -#, c-format -msgid "" -"There are %u documents with unsaved changes. Save changes before closing?" -msgid_plural "" -"There are %u documents with unsaved changes. Save changes before closing?" -msgstr[0] "" -msgstr[1] "" - -#. Could not save file foo.txt -#: ../moo/mooedit/mooeditdialogs.c:412 -#, c-format -msgid "" -"Could not save file\n" -"%s" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:414 -msgid "Could not save file" -msgstr "" - -#. Error saving file foo.txt -#: ../moo/mooedit/mooeditdialogs.c:436 -#, c-format -msgid "" -"Error saving file\n" -"%s" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:438 -msgid "Error saving file" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:440 -#, c-format -msgid "" -"Could not convert file to requested character encoding %s. File was saved in " -"UTF-8 encoding." -msgstr "" - -#. Could not open file foo.txt -#: ../moo/mooedit/mooeditdialogs.c:465 -#, c-format -msgid "" -"Could not open file\n" -"%s" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:467 -msgid "Could not open file" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:473 -#, c-format -msgid "" -"Could not open file using character encoding %s. The file may be binary or " -"encoding may be specified incorrectly." -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:477 -#, c-format -msgid "" -"Could not detect file character encoding. Please make sure the file is not " -"binary and try to select encoding in the Open dialog." -msgstr "" - -#. Could not reload file foo.txt -#: ../moo/mooedit/mooeditdialogs.c:512 -#, c-format -msgid "" -"Could not reload file\n" -"%s" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:572 -#, c-format -msgid "Discard changes in file '%s'?" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:574 -msgid "If you reload the document, changes will be discarded" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:575 ../moo/mooedit/mooeditwindow.c:376 -msgid "_Reload" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:596 -#, c-format -msgid "Overwrite modified file '%s'?" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:597 -#, c-format -msgid "" -"File '%s' was modified on disk by another process. If you save it, changes " -"on disk will be lost." -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:599 -msgid "Over_write" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:620 -msgid "" -"Beginning of document reached.\n" -"Continue from the end?" -msgstr "" - -#: ../moo/mooedit/mooeditdialogs.c:623 -msgid "" -"End of document reached.\n" -"Continue from the beginning?" -msgstr "" - -#. Translators: if translated, it should be a comma-separated list -#. of encodings to try when opening files. Encodings names should be -#. those understood by iconv, or "LOCALE" which means user's locale -#. charset. For instance, the default value is "UTF-8,LOCALE,ISO_8859-15,ISO_8859-1". -#. You want to add common preferred non-UTF8 encodings used in your locale. -#. Do not remove ISO_8859-15 and ISO_8859-1, instead leave them at the end, -#. these are common source files encodings. -#: ../moo/mooedit/mooedit-fileops.c:232 -msgid "encodings_list" -msgstr "" - -#: ../moo/mooedit/mooedit-fileops.c:1231 -#: ../moo/mooedit/plugins/moofileselector.c:518 -msgid "Untitled" -msgstr "" - -#: ../moo/mooedit/mooedit-fileops.c:1233 -#, c-format -msgid "Untitled %d" -msgstr "" - -#: ../moo/mooedit/mooeditor.c:227 -msgid "Open Recent Files Dialog" -msgstr "" - -#: ../moo/mooedit/mooeditor.c:228 -msgid "Open Recent|_More..." -msgstr "" - -#: ../moo/mooedit/mooeditor.c:525 -msgid "Open new editor window" -msgstr "" - -#: ../moo/mooedit/mooeditor.c:735 -msgid "Open Recent" -msgstr "" - -#. Translators: this one is temporary, don't translate -#: ../moo/mooedit/mooeditprefspage.c:198 -msgid "PreferencesPage|General" -msgstr "" - -#. Translators: this one is temporary, don't translate -#: ../moo/mooedit/mooeditprefspage.c:233 -msgid "PreferencesPage|Filters" -msgstr "" - -#. Translators: this one is temporary, don't translate -#: ../moo/mooedit/mooeditprefspage.c:281 -msgid "PreferencesPage|View" -msgstr "" - -#. Translators: this one is temporary, don't translate -#: ../moo/mooedit/mooeditprefspage.c:326 -msgid "PreferencesPage|File" -msgstr "" - -#. Translators: this one is temporary, don't translate -#: ../moo/mooedit/mooeditprefspage.c:380 -msgid "PreferencesPage|Langs" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:359 -msgid "Create new document" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:367 -msgid "_Open..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:368 -msgid "Open..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:375 ../moo/moofileview/moofileview.c:1277 -#: ../moo/moofileview/moofileview.c:1278 -msgid "Reload" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:377 -msgid "Reload document" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:404 -msgid "Save _As..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:405 -msgid "Save as..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:415 -msgid "Close document" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:423 -msgid "Close All" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:424 -msgid "Close A_ll" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:425 -msgid "Close all documents" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:432 -msgid "Previous Tab" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:433 -msgid "_Previous Tab" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:434 -msgid "Previous tab" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:442 -msgid "Next Tab" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:443 -msgid "_Next Tab" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:444 -msgid "Next tab" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:463 -msgid "Find Next" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:465 -msgid "Find next" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:474 -msgid "Find Previous" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:475 -msgid "Find _Previous" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:476 -msgid "Find previous" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:496 -msgid "Find Current Word" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:497 -msgid "Find Current _Word" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:505 -msgid "Find Current Word Backwards" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:506 -msgid "Find Current Word _Backwards" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:515 -msgid "_Go to Line..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:516 -msgid "Go to line..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:525 -msgid "Toggle Text Wrapping" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:526 -msgid "_Wrap Text" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:533 -msgid "Toggle Line Numbers Display" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:534 -msgid "_Show Line Numbers" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:540 -msgid "Focus Document" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:541 -msgid "_Focus Document" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:587 -msgid "Toggle Bookmark" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:588 -msgid "Toggle _Bookmark" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:596 -msgid "Next Bookmark" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:597 -msgid "_Next Bookmark" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:604 -msgid "Previous Bookmark" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:605 -msgid "_Previous Bookmark" -msgstr "" - -#. action -#: ../moo/mooedit/mooeditwindow.c:613 ../moo/mooedit/mooeditwindow.c:614 -#: ../moo/mooedit/mooeditwindow.c:615 -msgid "Comment" -msgstr "" - -#. action -#: ../moo/mooedit/mooeditwindow.c:623 ../moo/mooedit/mooeditwindow.c:624 -#: ../moo/mooedit/mooeditwindow.c:625 -msgid "Uncomment" -msgstr "" - -#. Insensitive menu item which appears in Window menu with no documents open -#: ../moo/mooedit/mooeditwindow.c:653 -msgid "No Documents" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:661 -msgid "Page Setup" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:662 -msgid "Page S_etup..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:663 -msgid "Page Setup..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:688 ../moo/mooedit/mooeditwindow.c:1652 -msgid "Export as PDF" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:689 -msgid "E_xport as PDF..." -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:690 -msgid "Export as PDF..." -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [new file]" -#: ../moo/mooedit/mooeditwindow.c:909 -#, c-format -msgid "%s [new file]" -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [modified on disk]" -#: ../moo/mooedit/mooeditwindow.c:912 -#, c-format -msgid "%s [modified on disk]" -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [deleted]" -#: ../moo/mooedit/mooeditwindow.c:915 -#, c-format -msgid "%s [deleted]" -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [new file] [modified]" -#: ../moo/mooedit/mooeditwindow.c:923 -#, c-format -msgid "%s [new file] [modified]" -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [modified on disk] [modified]" -#: ../moo/mooedit/mooeditwindow.c:926 -#, c-format -msgid "%s [modified on disk] [modified]" -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [deleted] [modified]" -#: ../moo/mooedit/mooeditwindow.c:929 -#, c-format -msgid "%s [deleted] [modified]" -msgstr "" - -#. Translators: this goes into window title, %s stands for filename, e.g. "/foo/bar.txt [modified]" -#: ../moo/mooedit/mooeditwindow.c:932 -#, c-format -msgid "%s [modified]" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:1171 -msgid "Reopen Using Encoding" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:1221 -msgid "_Encoding" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:2819 -#, c-format -msgid "Line: %s Col: %s" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:2820 -#, c-format -msgid "Chars: %s" -msgstr "" - -#. Label in the editor window statusbar - Overwrite or Insert mode -#: ../moo/mooedit/mooeditwindow.c:2861 -msgid "OVR" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:2861 -msgid "INS" -msgstr "" - -#: ../moo/mooedit/mooeditwindow.c:2958 -msgid "_Language" -msgstr "" - -#. Menu item in the Language menu -#: ../moo/mooedit/mooeditwindow.c:2963 -msgid "Language|None" -msgstr "" - -#: ../moo/mooedit/mooplugin.c:1448 -msgid "Plugins" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:474 -msgid "No search term entered" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:777 ../moo/mooedit/mootextfind.c:883 -#: ../moo/mooedit/mootextfind.c:1038 -msgid "Search hit top, continuing at bottom" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:779 ../moo/mooedit/mootextfind.c:881 -#: ../moo/mooedit/mootextfind.c:961 -msgid "Search hit bottom, continuing at top" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:788 ../moo/mooedit/mootextfind.c:893 -#: ../moo/mooedit/mootextfind.c:969 ../moo/mooedit/mootextfind.c:1046 -#, c-format -msgid "Pattern not found: %s" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:875 -#, c-format -msgid "Found single instance of pattern '%s'" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:1081 -msgid "No replacement made" -msgstr "" - -#: ../moo/mooedit/mootextfind.c:1087 -#, c-format -msgid "%u replacement made" -msgid_plural "%u replacements made" -msgstr[0] "" -msgstr[1] "" - -#: ../moo/mooedit/moousertools.c:396 ../moo/mooedit/moousertools-prefs.c:411 -msgid "Tools" -msgstr "" - -#: ../moo/mooedit/moousertools-prefs.c:111 -msgid "New Command" -msgstr "" - -#: ../moo/mooedit/plugins/moofilelist.c:2355 -#: ../moo/mooedit/plugins/moofilelist.c:2356 -#: ../moo/mooedit/plugins/moofilelist.c:2413 -msgid "File List" -msgstr "" - -#: ../moo/mooedit/plugins/moofilelist.c:2413 -msgid "List of files" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:396 -#, c-format -msgid "Create file in folder '%s':" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:451 -#, c-format -msgid "Could not create file '%s'" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:452 -#: ../moo/mooedit/plugins/moofileselector.c:812 -#, c-format -msgid "" -"Could not convert '%s' to filename encoding. Please consider simpler name, " -"such as foo.blah or blah.foo" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:467 -#, c-format -msgid "File '%s' already exists" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:608 -msgid "Go to current document directory" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:620 -#: ../moo/mooedit/plugins/moofileselector.c:621 -msgid "New File..." -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:643 -#: ../moo/mooedit/plugins/moofileselector.c:644 -#: ../moo/mooedit/plugins/moofileselector.c:1277 -#: ../moo/mooedit/plugins/moofileselector-prefs.c:71 -#: ../moo/moofileview/moofileview.c:1111 -msgid "File Selector" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:811 -#, c-format -msgid "Could not save file as '%s'" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:894 -#: ../moo/mooedit/plugins/moofileselector.c:919 -#: ../moo/mooedit/plugins/moofileselector.glade.h:2 -#: ../moo/moofileview/glade/moofileview-drop.glade.h:1 -msgid "Save As" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:939 -msgid "Save Copy As" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:963 -msgid "Rename To" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1103 -msgid "Move Here" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1104 -msgid "Move/Rename..." -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1112 -msgid "Save Here" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1113 -msgid "Save As..." -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1121 ../moo/mooutils/moostock.c:47 -msgid "Save Copy" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1122 -msgid "Save Copy As..." -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.c:1278 -msgid "File selector pane for editor window" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.glade.h:1 -msgid "Create File" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector.glade.h:3 -msgid "Save as" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:1 -msgid "Open With" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:2 -msgid "Command:" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:3 -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:4 -msgid "Delete" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:5 -msgid "Menu item label" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:7 -msgid "Move down" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:8 -msgid "Move up" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:9 -msgid "Name:" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:10 -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:8 -msgid "New" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:11 -msgid "Semicolon-separated list of file globs, e.g. '*.txt;foo.*;*bar*'" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:12 -msgid "" -"Semicolon-separated list of mime types, e.g. 'text/*;application/x-glade'" -msgstr "" - -#: ../moo/mooedit/plugins/moofileselector-prefs.glade.h:14 -#, no-c-format -msgid "" -"Shell command to open the file: '%f' is replaced with file path, e.g. " -"'foobar %f'" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:186 -msgid "Search Results" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:250 ../moo/mooedit/plugins/moofind.c:251 -msgid "Find In Files" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:252 -msgid "Find in files" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:260 ../moo/mooedit/plugins/moofind.c:261 -#: ../moo/mooedit/plugins/moofind.c:951 -msgid "Find File" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:262 -msgid "Find file" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:921 -msgid "Find in Files" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.c:1001 ../moo/mooedit/plugins/moofind.c:1027 -#, c-format -msgid "*** %u match found ***" -msgid_plural "*** %u matches found ***" -msgstr[0] "" -msgstr[1] "" - -#: ../moo/mooedit/plugins/moofind.c:1008 ../moo/mooedit/plugins/moofind.c:1033 -#, c-format -msgid "*** %u file found ***" -msgid_plural "*** %u files found ***" -msgstr[0] "" -msgstr[1] "" - -#: ../moo/mooedit/plugins/moofind.c:1070 -msgid "Finds everything" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.glade.h:1 -#: ../moo/mooedit/plugins/moogrep.glade.h:3 -msgid "S_kip files:" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.glade.h:2 -#: ../moo/mooedit/plugins/moogrep.glade.h:4 -msgid "_Directory:" -msgstr "" - -#: ../moo/mooedit/plugins/moofind.glade.h:3 -#: ../moo/mooedit/plugins/moogrep.glade.h:5 -msgid "_Pattern:" -msgstr "" - -#: ../moo/mooedit/plugins/moogrep.glade.h:1 -msgid "Case _sensitive" -msgstr "" - -#: ../moo/mooedit/plugins/moogrep.glade.h:2 -msgid "Fi_les:" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:1 -msgid "Add Separator" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:2 -msgid "Add bookmark" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:3 -msgid "Add separator" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:5 -msgid "Delete selected items" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:6 -#: ../moo/moofileview/moofileview.c:1237 ../moo/moofileview/moofileview.c:1238 -msgid "Edit Bookmarks" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:7 -msgid "Icon:" -msgstr "" - -#: ../moo/moofileview/glade/moobookmark-editor.glade.h:9 -msgid "Path:" -msgstr "" - -#: ../moo/moofileview/glade/moocreatefolder.glade.h:1 -msgid "Create Folder" -msgstr "" - -#: ../moo/moofileview/glade/moofileprops.glade.h:1 -msgid "General" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1120 -msgid "Go to parent folder" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1169 ../moo/moofileview/moofileview.c:3278 -msgid "Delete..." -msgstr "" - -#: ../moo/moofileview/moofileview.c:1170 ../moo/moofileview/moofileview.c:3279 -msgid "Delete selected files" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1180 ../moo/moofileview/moofileview.c:1181 -msgid "Show Hidden Files" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1189 ../moo/moofileview/moofileview.c:1190 -msgid "Show Parent Folder" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1196 ../moo/moofileview/moofileview.c:1197 -msgid "Case Sensitive Sort" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1203 ../moo/moofileview/moofileview.c:1204 -msgid "Show Folders First" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1220 ../moo/moofileview/moofileview.c:1221 -#: ../moo/moofileview/moofileview.xml.h:1 -msgid "Bookmarks" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1229 ../moo/moofileview/moofileview.c:1230 -msgid "Add Bookmark" -msgstr "" - -#: ../moo/moofileview/moofileview.c:1552 -msgid "Filter" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3122 -#, c-format -msgid "Move folder %s to Trash?" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3125 -#, c-format -msgid "Move file %s to Trash?" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3130 -msgid "Move selected files to Trash?" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3138 -#, c-format -msgid "Delete folder %s and all its content?" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3141 -#, c-format -msgid "Delete file %s?" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3146 -msgid "Delete selected files?" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3208 -#, c-format -msgid "Could not delete folder %s" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3211 -#, c-format -msgid "Could not delete file %s" -msgstr "" - -#: ../moo/moofileview/moofileview.c:3272 -msgid "Move to Trash..." -msgstr "" - -#: ../moo/moofileview/moofileview.c:3273 -msgid "Move selected files to Trash" -msgstr "" - -#: ../moo/moofileview/moofileview-tools.c:291 -msgid "Open with|Default Application" -msgstr "" - -#: ../moo/moofileview/moofileview.xml.h:2 -msgid "Open _With" -msgstr "" - -#: ../moo/moofileview/moofileview.xml.h:3 -msgid "View" -msgstr "" - -#: ../moo/moopython/plugins/medit/runpython.py:43 -msgid "Python Output" -msgstr "" - -#: ../moo/moopython/plugins/pycmd.py:96 -msgid "Python script" -msgstr "" - -#: ../moo/moopython/plugins/python.py:48 ../moo/moopython/plugins/python.py:49 -msgid "Python Console" -msgstr "" - -#: ../moo/moopython/plugins/python.py:56 ../moo/moopython/plugins/python.py:57 -msgid "Run File" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:177 -#: ../moo/moopython/plugins/terminal.ini.in.in.h:1 -msgid "Terminal" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:224 -msgid "Default" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:225 -msgid "Black on White" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:228 -msgid "Black on Light Yellow" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:231 -msgid "Marble" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:234 -msgid "Green on Black" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:237 -msgid "Paper, Light" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:240 -msgid "Paper" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:243 -msgid "Linux Colors" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:246 -msgid "VIM Colors" -msgstr "" - -#: ../moo/moopython/plugins/terminal.py:249 -msgid "White on Black" -msgstr "" - -#: ../moo/mooutils/glade/mooaccelprefs.glade.h:1 -msgid "Default key:" -msgstr "" - -#: ../moo/mooutils/glade/mooaccelprefs.glade.h:2 -msgid "Shortcut for selected action" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooutils/glade/mooaccelprefs.glade.h:4 -msgid "Shortcut|Custom" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooutils/glade/mooaccelprefs.glade.h:6 -msgid "Shortcut|Default" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooutils/glade/mooaccelprefs.glade.h:8 -msgid "Shortcut|None" -msgstr "" - -#: ../moo/mooutils/mooaccelprefs.c:798 -msgid "Configure Shortcuts" -msgstr "" - -#: ../moo/mooutils/mooutils-file.c:97 -#, c-format -msgid "Could not open %s: %s" -msgstr "" - -#: ../moo/mooutils/mooutils-file.c:263 ../moo/mooutils/mooutils-fs.c:280 -#: ../moo/mooutils/mooutils-fs.c:299 ../moo/mooutils/mooutils-fs.c:315 -#, c-format -msgid "Could not create folder %s: %s" -msgstr "" - -#: ../moo/mooutils/moodialogs.c:348 -#, c-format -msgid "Save changes to document \"%s\" before closing?" -msgstr "" - -#: ../moo/mooutils/moodialogs.c:349 -msgid "Save changes to the document before closing?" -msgstr "" - -#: ../moo/mooutils/moodialogs.c:354 -msgid "If you don't save, changes will be discarded" -msgstr "" - -#. Translators: 012345 denotes order in which character encoding -#. groups should appear, e.g. 543210 means inverse order. -#. 0 - "West European", -#. 1 - "East European", -#. 2 - "East Asian", -#. 3 - "SE & SW Asian", -#. 4 - "Middle Eastern", -#. 5 - "Unicode" -#: ../moo/mooutils/mooencodings.c:174 -msgid "012345" -msgstr "" - -#: ../moo/mooutils/mooencodings.c:692 -msgid "Auto Detected" -msgstr "" - -#. Translators: do not translate the part before | -#: ../moo/mooutils/mooencodings.c:721 -msgid "Encodings combo submenu|Other" -msgstr "" - -#: ../moo/mooutils/mooencodings.c:820 -msgid "Charact_er encoding:" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:27 -msgid "West European" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:28 -msgid "East European" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:29 -msgid "East Asian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:30 -msgid "SE & SW Asian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:31 -msgid "Middle Eastern" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:32 -#: ../moo/mooutils/mooencodings-data.h:71 -#: ../moo/mooutils/mooencodings-data.h:72 -#: ../moo/mooutils/mooencodings-data.h:73 -#: ../moo/mooutils/mooencodings-data.h:74 -#: ../moo/mooutils/mooencodings-data.h:75 -msgid "Unicode" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:53 -msgid "Ascii" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:55 -#: ../moo/mooutils/mooencodings-data.h:68 -#: ../moo/mooutils/mooencodings-data.h:92 -#: ../moo/mooutils/mooencodings-data.h:117 -#: ../moo/mooutils/mooencodings-data.h:130 -msgid "Western" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:56 -#: ../moo/mooutils/mooencodings-data.h:93 -#: ../moo/mooutils/mooencodings-data.h:107 -#: ../moo/mooutils/mooencodings-data.h:128 -msgid "Central European" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:57 -msgid "South European" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:58 -#: ../moo/mooutils/mooencodings-data.h:66 -#: ../moo/mooutils/mooencodings-data.h:135 -msgid "Baltic" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:59 -#: ../moo/mooutils/mooencodings-data.h:94 -#: ../moo/mooutils/mooencodings-data.h:101 -#: ../moo/mooutils/mooencodings-data.h:103 -#: ../moo/mooutils/mooencodings-data.h:109 -#: ../moo/mooutils/mooencodings-data.h:129 -msgid "Cyrillic" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:60 -#: ../moo/mooutils/mooencodings-data.h:97 -#: ../moo/mooutils/mooencodings-data.h:106 -#: ../moo/mooutils/mooencodings-data.h:134 -msgid "Arabic" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:61 -#: ../moo/mooutils/mooencodings-data.h:112 -#: ../moo/mooutils/mooencodings-data.h:131 -msgid "Greek" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:62 -msgid "Hebrew Visual" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:63 -#: ../moo/mooutils/mooencodings-data.h:96 -#: ../moo/mooutils/mooencodings-data.h:115 -#: ../moo/mooutils/mooencodings-data.h:133 -msgid "Hebrew" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:64 -#: ../moo/mooutils/mooencodings-data.h:95 -#: ../moo/mooutils/mooencodings-data.h:119 -#: ../moo/mooutils/mooencodings-data.h:132 -msgid "Turkish" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:65 -msgid "Nordic" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:67 -msgid "Celtic" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:69 -#: ../moo/mooutils/mooencodings-data.h:118 -msgid "Romanian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:77 -msgid "Armenian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:78 -#: ../moo/mooutils/mooencodings-data.h:79 -#: ../moo/mooutils/mooencodings-data.h:84 -msgid "Chinese Traditional" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:80 -msgid "Cyrillic/Russian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:82 -#: ../moo/mooutils/mooencodings-data.h:99 -#: ../moo/mooutils/mooencodings-data.h:122 -msgid "Japanese" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:83 -#: ../moo/mooutils/mooencodings-data.h:100 -#: ../moo/mooutils/mooencodings-data.h:102 -#: ../moo/mooutils/mooencodings-data.h:125 -msgid "Korean" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:86 -#: ../moo/mooutils/mooencodings-data.h:87 -#: ../moo/mooutils/mooencodings-data.h:88 -#: ../moo/mooutils/mooencodings-data.h:90 -msgid "Chinese Simplified" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:89 -msgid "Georgian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:104 -#: ../moo/mooutils/mooencodings-data.h:120 -msgid "Cyrillic/Ukrainian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:108 -msgid "Croatian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:110 -msgid "Hindi" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:111 -msgid "Persian" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:113 -msgid "Gujarati" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:114 -msgid "Gurmukhi" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:116 -msgid "Icelandic" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:123 -#: ../moo/mooutils/mooencodings-data.h:126 -#: ../moo/mooutils/mooencodings-data.h:136 -msgid "Vietnamese" -msgstr "" - -#: ../moo/mooutils/mooencodings-data.h:124 -msgid "Thai" -msgstr "" - -#: ../moo/mooutils/moofiltermgr.c:546 -msgid "_Show:" -msgstr "" - -#: ../moo/mooutils/moofontsel.c:502 -msgid "Show only fixed width fonts" -msgstr "" - -#: ../moo/mooutils/moohelp.c:207 -msgid "Help files not found" -msgstr "" - -#: ../moo/mooutils/moohelp.c:219 -#, c-format -msgid "File '%s' is missing in the directory '%s'" -msgstr "" - -#: ../moo/mooutils/moohelp.c:222 -msgid "Could not find help file" -msgstr "" - -#: ../moo/mooutils/moopane.c:668 -msgid "Remove pane" -msgstr "" - -#: ../moo/mooutils/moopane.c:678 -msgid "Hide pane" -msgstr "" - -#: ../moo/mooutils/moopane.c:682 -msgid "Sticky" -msgstr "" - -#: ../moo/mooutils/moopane.c:686 -msgid "Detach pane" -msgstr "" - -#: ../moo/mooutils/moopane.c:699 -msgid "Attach" -msgstr "" - -#: ../moo/mooutils/moopane.c:703 -msgid "Keep on top" -msgstr "" - -#: ../moo/mooutils/moostock.c:41 -msgid "Save _None" -msgstr "" - -#: ../moo/mooutils/moostock.c:42 -msgid "Save _Selected" -msgstr "" - -#: ../moo/mooutils/moostock.c:44 -msgid "Move" -msgstr "" - -#: ../moo/mooutils/moostock.c:45 -msgid "Link" -msgstr "" - -#: ../moo/mooutils/moostock.c:48 -msgid "_New Folder" -msgstr "" - -#: ../moo/mooutils/moostock.c:49 -msgid "New _Window" -msgstr "" - -#. This is error message in file selector when rm -#. fails for some strange reason -#: ../moo/mooutils/mooutils-fs.c:120 -#, c-format -msgid "Could not run 'rm' command: %s" -msgstr "" - -#. This is error message in file selector when rm -#. fails to delete a file or folder -#: ../moo/mooutils/mooutils-fs.c:138 -#, c-format -msgid "'rm' command failed: %s" -msgstr "" - -#: ../moo/mooutils/mooutils-fs.c:188 ../moo/mooutils/mooutils-fs.c:208 -#: ../moo/mooutils/mooutils-fs.c:235 -#, c-format -msgid "Could not remove %s: %s" -msgstr "" - -#: ../moo/mooutils/mooutils-fs.c:344 -#, c-format -msgid "Could not rename file %s to %s: %s" -msgstr "" - -#: ../moo/mooutils/moowindow.c:234 -msgid "Configure _Shortcuts..." -msgstr "" - -#: ../moo/mooutils/moowindow.c:242 ../moo/mooutils/moowindow.c:243 -msgid "Show Toolbar" -msgstr "" - -#: ../moo/mooutils/moowindow.c:249 ../moo/mooutils/moowindow.c:250 -msgid "Show Menubar" -msgstr "" - -#: ../moo/mooutils/moowindow.c:257 ../moo/mooutils/moowindow.c:258 -msgid "Show Statusbar" -msgstr "" - -#: ../moo/mooutils/moowindow.c:1157 -msgid "_Icons Only" -msgstr "" - -#: ../moo/mooutils/moowindow.c:1158 -msgid "_Labels Only" -msgstr "" - -#: ../moo/mooutils/moowindow.c:1159 -msgid "Labels _Below Icons" -msgstr "" - -#: ../moo/mooutils/moowindow.c:1160 -msgid "Labels Be_side Icons" -msgstr "" - -#: ../moo/mooutils/moowindow.c:1170 -msgid "Toolbar _Style" -msgstr "" - -#: ../moo/moopython/plugins/python.ini.in.in.h:1 -msgid "Python" -msgstr "" - -#: ../moo/moopython/plugins/python.ini.in.in.h:2 -msgid "Python support" -msgstr "" - -#: ../moo/moopython/plugins/terminal.ini.in.in.h:2 -msgid "Terminal plugin" -msgstr "" diff --git a/ugly/bdist-top.mk b/ugly/bdist-top.mk new file mode 100644 index 00000000..c127022e --- /dev/null +++ b/ugly/bdist-top.mk @@ -0,0 +1,24 @@ +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +bdistdir = $(PACKAGE)-$(VERSION) + +ug_remove_bdistdir = \ + { test ! -d $(bdistdir) \ + || { find $(bdistdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(bdistdir); }; } + +bdist-zip: bdistdir + rm -f $(bdistdir).zip + zip -9 -r $(bdistdir).zip $(bdistdir) + $(ug_remove_bdistdir) + +bdistdir: + $(ug_remove_bdistdir) + test -d $(bdistdir) || mkdir $(bdistdir) + bdistdir=`$(am__cd) $(bdistdir) && pwd`; \ + $(MAKE) $(AM_MAKEFLAGS) bdistdir="$$bdistdir" bdistsubdir + -find $(bdistdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(bdistdir) diff --git a/ugly/bdist.mk b/ugly/bdist.mk new file mode 100644 index 00000000..d7767feb --- /dev/null +++ b/ugly/bdist.mk @@ -0,0 +1,57 @@ +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +BDIST_SUBDIRS = $(SUBDIRS) + +if MOO_OS_MINGW +BDIST_FILES += $(BWIN32_FILES) +BDIST_EXTRA += $(BWIN32_EXTRA) +else +if MOO_OS_DARWIN +BDIST_FILES += $(BMAC_FILES) +BDIST_EXTRA += $(BMAC_EXTRA) +else +BDIST_FILES += $(BFDO_FILES) +BDIST_EXTRA += $(BFDO_EXTRA) +endif +endif + +bdistsubdir: $(BDIST_FILES) $(BDIST_EXTRA) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(BDIST_FILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(bdistdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(bdistdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(bdistdir)$$dir || exit 1; \ + else \ + test -f $(bdistdir)/$$file \ + || cp -p $$d/$$file $(bdistdir)/$$file \ + || exit 1; \ + fi; \ + done + bdistdir=`$(am__cd) $(bdistdir) && pwd`; \ + list='$(BDIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + bdistdir="$$bdistdir" \ + bdistsubdir) \ + || exit 1; \ + fi; \ + done + bdistdir=`$(am__cd) $(bdistdir) && pwd`; \ + list='$(BDIST_EXTRA)'; for target in $$list; do \ + $(MAKE) $(AM_MAKEFLAGS) bdistdir="$$bdistdir" $$target || exit 1; \ + done diff --git a/ugly/glade.mk b/ugly/glade.mk index 6b379145..8156c73b 100644 --- a/ugly/glade.mk +++ b/ugly/glade.mk @@ -1 +1,19 @@ -repo/glade.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = GLADE_FILES + +ugly_glade2h = $(top_srcdir)/ugly/glade2h.sh +ugly_xml2h = $(top_srcdir)/ugly/xml2h.sh +ugly_glade_mk = $(top_srcdir)/ugly/glade.mk + +glade/%-glade.h: glade/%.glade $(ugly_xml2h) $(ugly_glade2h) $(ugly_glade_mk) + @mkdir -p `dirname $@` + $(ugly_glade2h) $< > $@.tmp && mv $@.tmp $@ +%-glade.h: %.glade $(ugly_xml2h) $(ugly_glade2h) $(ugly_glade_mk) + @mkdir -p `dirname $@` + $(ugly_glade2h) $< > $@.tmp && mv $@.tmp $@ + +ugly_glade_sources = $(GLADE_FILES:%.glade=%-glade.h) + +BUILT_SOURCES += $(ugly_glade_sources) +CLEANFILES += $(ugly_glade_sources) +EXTRA_DIST += $(GLADE_FILES) $(ugly_xml2h) $(ugly_glade2h) diff --git a/ugly/glade2.mk b/ugly/glade2.mk index 672de02d..9f9df605 100644 --- a/ugly/glade2.mk +++ b/ugly/glade2.mk @@ -1 +1,17 @@ -repo/glade2.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = GLADE2_FILES + +ugly_glade2c = $(top_srcdir)/ugly/glade2c.py +ugly_glade2_mk = $(top_srcdir)/ugly/glade2.mk + +glade/%-gxml.h: glade/%.glade $(ugly_glade2c) $(ugly_glade2_mk) + @mkdir -p `dirname $@` + $(PYTHON) $(ugly_glade2c) $< > $@.tmp && mv $@.tmp $@ +%-gxml.h: %.glade $(ugly_glade2c) $(ugly_glade2_mk) + @mkdir -p `dirname $@` + $(PYTHON) $(ugly_glade2c) $< > $@.tmp && mv $@.tmp $@ + +ugly_glade2_sources = $(GLADE2_FILES:%.glade=%-gxml.h) + +BUILT_SOURCES += $(ugly_glade2_sources) +EXTRA_DIST += $(GLADE2_FILES) $(ugly_glade2c) $(ugly_glade2_sources) diff --git a/ugly/glade2c.py b/ugly/glade2c.py index 6e918b8b..fc9e102a 100644 --- a/ugly/glade2c.py +++ b/ugly/glade2c.py @@ -1 +1,339 @@ -repo/glade2c.py \ No newline at end of file +#! /usr/bin/env python + +import os.path +import sys +import getopt +import xml.dom +import xml.dom.minidom as minidom +import StringIO + +def name_is_nice(name): + return name[-1:] not in "0123456789" + +class Widget(object): + def __init__(self, node, name, class_name): + object.__init__(self) + + self.node = node + self.name = name + self.class_name = class_name + self.real_name = node.getAttribute('id') + + if self.name in ['new', 'delete']: + self.name += '_' + +class GladeXml(object): + def __init__(self, root, buffer, params): + object.__init__(self) + + assert root is not None + self.root = root + self.buffer = buffer + + self.rootName = root.getAttribute("id") + if ':' in self.rootName: + self.rootName, real_class_name = self.rootName.split(':') + + self.widgets = [] + def check_node(node): + if node.tagName != "widget": + return None + name = node.getAttribute("id") + class_name = node.getAttribute("class") + if ':' in name: + real_name, real_class_name = name.split(':') + name = real_name + class_name = real_class_name + if name_is_nice(name): + self.widgets.append(Widget(node, name, class_name)) + return None + walk_node(root, False, check_node) + + def format_buffer(self): + out = StringIO.StringIO() + for l in self.buffer.splitlines(): + out.write('"') + out.write(l.replace('\\', '\\\\').replace('"', '\\"')) + out.write('"\n') + ret = out.getvalue() + out.close() + return ret + +class ConvertParams(object): + def __init__(self): + object.__init__(self) + + self.root = None + self.id_map = {} + self.struct_name = None + self.StructName = None + + def map_id(self, id, ClassName, CLASS_TYPE = None): + self.id_map[id] = (ClassName, CLASS_TYPE) + +def walk_node(node, walk_siblings, func, *args): + while node is not None: + if node.nodeType == xml.dom.Node.ELEMENT_NODE: + ret = func(node, *args) + if ret is not None: + return ret + ret = walk_node(node.firstChild, True, func, *args) + if ret is not None: + return ret + if not walk_siblings: + break + node = node.nextSibling + return None + +def find_roots(dom, root_name): + def check_node(node, name): + if node.tagName != "widget": + return None + if name is None and name_is_nice(node.getAttribute("id")): + return node + if node.getAttribute("id") == name: + return node + roots = [] + for toplevel in dom.documentElement.childNodes: + root = walk_node(toplevel, False, check_node, root_name) + if root: + roots.append(root) + return roots + +def write_file(gxml, params, out, xml_buf_name, first_widget): + tmpl_start = """\ +#include +#include +#include + +static const char %(glade_xml)s[] = +%(glade_xml_content)s +; + +""" + + tmpl = """\ +typedef struct %(XmlStruct)s %(XmlStruct)s; + +struct %(XmlStruct)s { + MooGladeXML *xml; +%(glade_xml_widgets_decl)s +}; + +static void +_%(xml_struct)s_free (%(XmlStruct)s *xml) +{ + if (xml) + { + g_object_unref (xml->xml); + g_free (xml); + } +} + +G_GNUC_UNUSED static %(XmlStruct)s * +%(xml_struct)s_get (gpointer widget) +{ + return g_object_get_data (widget, "moo-generated-glade-xml"); +} + +static void +_%(xml_struct)s_finish_build (%(XmlStruct)s *xml) +{ +%(glade_xml_widgets_defs)s + g_object_set_data_full (G_OBJECT (xml->%(root)s), "moo-generated-glade-xml", + xml, (GDestroyNotify) _%(xml_struct)s_free); +} + +static void +%(xml_struct)s_build (%(XmlStruct)s *xml) +{ + moo_glade_xml_parse_memory (xml->xml, %(glade_xml)s, -1, "%(root)s", NULL); + _%(xml_struct)s_finish_build (xml); +} + +static void +%(xml_struct)s_fill (%(XmlStruct)s *xml, GtkWidget *root) +{ + moo_glade_xml_fill_widget (xml->xml, root, %(glade_xml)s, -1, "%(root)s", NULL); + _%(xml_struct)s_finish_build (xml); +} + +static %(XmlStruct)s * +%(xml_struct)s_new_empty (void) +{ + %(XmlStruct)s *xml = g_new0 (%(XmlStruct)s, 1); + xml->xml = moo_glade_xml_new_empty (GETTEXT_PACKAGE); +%(glade_xml_widgets_map)s + return xml; +} + +G_GNUC_UNUSED static %(XmlStruct)s * +%(xml_struct)s_new (void) +{ + %(XmlStruct)s *xml = %(xml_struct)s_new_empty (); + %(xml_struct)s_build (xml); + return xml; +} + +G_GNUC_UNUSED static %(XmlStruct)s * +%(xml_struct)s_new_with_root (GtkWidget *root) +{ + %(XmlStruct)s *xml = %(xml_struct)s_new_empty (); + %(xml_struct)s_fill (xml, root); + return xml; +} +""" + + buf = StringIO.StringIO() + if gxml.widgets: + print >> buf, '' + for w in gxml.widgets: + name = w.name + ct = params.id_map.get(name) + if ct is None: + class_name = w.class_name + else: + class_name = ct[0] + print >> buf, ' %s *%s;' % (class_name, name) + glade_xml_widgets_decl = buf.getvalue() + buf.close() + + buf = StringIO.StringIO() + for w in gxml.widgets: + print >> buf, """\ + xml->%(struct_mem)s = moo_glade_xml_get_widget (xml->xml, "%(glade_name)s"); + g_assert (xml->%(struct_mem)s != NULL);""" % { 'struct_mem': w.name, 'glade_name': w.real_name } + glade_xml_widgets_defs = buf.getvalue() + buf.close() + + buf = StringIO.StringIO() + for id in params.id_map: + ct = params.id_map.get(id) + if ct[1]: + type_name = ct[1] + else: + type_name = 'g_type_from_name ("%s")' % (ct[0],) + print >> buf, ' moo_glade_xml_map_id (xml->xml, "%s", %s);' % (id, type_name) + glade_xml_widgets_map = buf.getvalue() + buf.close() + + dic = { + 'glade_xml': '_' + params.struct_name + '_glade_xml', + 'glade_xml_content': gxml.format_buffer(), + 'root': gxml.rootName, + 'XmlStruct': params.StructName, + 'xml_struct': params.struct_name, + 'glade_xml_widgets_decl': glade_xml_widgets_decl, + 'glade_xml_widgets_defs': glade_xml_widgets_defs, + 'glade_xml_widgets_map': glade_xml_widgets_map, + } + + if xml_buf_name: + dic['glade_xml'] = xml_buf_name + + if first_widget: + out.write(tmpl_start % dic) + out.write(tmpl % dic) + +def convert_buffer(buf, params, output, filename): + dom = minidom.parseString(buf) + roots = find_roots(dom, params.root) + assert roots + close_output = False + + xml_buf_name = None + if len(roots) > 1: + xml_buf_name = os.path.basename(filename).replace('-', '_').replace('.glade', '_glade_xml') + + first_widget = True + has_StructName = params.StructName is not None + has_struct_name = params.StructName is not None + for root in roots: + params.root = root.getAttribute('id') + gxml = GladeXml(root, buf, params) + + if not has_StructName: + params.StructName = gxml.rootName + 'Xml' + if not has_struct_name: + def S2s(name): + ret = '' + for i in range(len(name)): + c = name[i] + if i == 0: + ret += c.lower() + elif c.istitle() and not name[i-1].istitle(): + ret += '_' + c.lower() + else: + ret += c + return ret + params.struct_name = S2s(params.StructName) + + if output is None: + output = sys.stdout + elif isinstance(output, str) or isinstance(output, unicode): + output = open(output, 'w') + close_output = True + + write_file(gxml, params, output, xml_buf_name, first_widget) + first_widget = False + + if close_output: + output.close() + +def convert_file(filename, params, output): + f = open(filename) + ret = convert_buffer(f.read(), params, output, filename) + f.close() + return ret + +def usage(): + print "Usage: %s [--map=id,ClassName,CLASS_TYPE...] [--output=outfile] FILE" % (sys.argv[0],) + +def main(args): + params = ConvertParams() + + try: + opts, files = getopt.getopt(args[1:], "hm:o:s:S:r:", + ["help", "map=", "output=", "struct-name=", "StructName=", "root="]) + except getopt.GetoptError, err: + print str(err) + usage() + return 2 + + output = None + + for o, a in opts: + if o in ("-h", "--help"): + usage() + return 0 + elif o in ("-m", "--map"): + t = a.split(',') + if len(t) == 3: + params.map_id(t[0], t[1], t[2]) + elif len(t) == 2: + params.map_id(t[0], t[1]) + else: + usage() + return 2 + elif o in ("-o", "--output"): + output = a + elif o in ("-s", "--struct-name"): + params.struct_name = a + elif o in ("-S", "--StructName"): + params.StructName = a + elif o in ("-r", "--root"): + params.root = a + + if len(files) != 1: + usage() + return 2 + + convert_file(files[0], params, output) + return 0 + +if __name__ == '__main__': +# args = ['glade2c', '-o', '/tmp/test.h', '-r', 'LuaPage', +# '-m', 'textview,MooTextView', +# '/tmp/test.glade'] +# sys.exit(main(args)) + sys.exit(main(sys.argv)) diff --git a/ugly/glade2h.sh b/ugly/glade2h.sh index a5595fcd..9d8d0104 100644 --- a/ugly/glade2h.sh +++ b/ugly/glade2h.sh @@ -1 +1,10 @@ -repo/glade2h.sh \ No newline at end of file +#! /bin/sh + +xml2h="`dirname $0`/xml2h.sh" + +base=`basename "$1" .glade | sed -e "s/-/_/g"` +BASE=`echo $base | tr '[a-z]' '[A-Z]'` +echo "#ifndef ${BASE}_GLADE_H" +echo "#define ${BASE}_GLADE_H" +"$xml2h" "${base}_glade_xml" "$1" || exit 0 +echo "#endif /* ${BASE}_GLADE_H */" diff --git a/ugly/glib-enums.mk b/ugly/glib-enums.mk index f99528ca..3a9d5dc9 100644 --- a/ugly/glib-enums.mk +++ b/ugly/glib-enums.mk @@ -1 +1,36 @@ -repo/glib-enums.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = ENUM_HDRS +# ENUM_PREFIX + +ugly_enum_hfile = $(ENUM_MODULE)-enums.h +ugly_enum_cfile = $(ENUM_MODULE)-enums.c +ugly_stamp_enum_hfile = stamp-$(ugly_enum_hfile) +ugly_stamp_enum_cfile = stamp-$(ugly_enum_cfile) + +ugly_enum_prefix = $(ENUM_PREFIX) + +BUILT_SOURCES += $(ugly_stamp_enum_hfile) $(ugly_stamp_enum_cfile) +CLEANFILES += $(ugly_stamp_enum_hfile) $(ugly_stamp_enum_cfile) + +$(ugly_stamp_enum_hfile): $(ENUM_HDRS) Makefile + ( HGUARD=`echo $(ugly_enum_hfile) | tr '[a-z.\-]' '[A-Z__]'` && cd $(srcdir) && \ + $(GLIB_MKENUMS) --fhead "#ifndef $$HGUARD\n#define $$HGUARD\n\n#include \n" \ + --fhead "\nG_BEGIN_DECLS\n\n\n" \ + --fprod "/* enumerations from @filename@ */\n" \ + --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define $(ugly_enum_prefix)_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n\n" \ + --ftail "\nG_END_DECLS\n\n#endif /* $$HGUARD */" \ + $(ENUM_HDRS) ) > $(ugly_enum_hfile).tmp \ + && (cmp -s $(ugly_enum_hfile).tmp $(srcdir)/$(ugly_enum_hfile) || cp $(ugly_enum_hfile).tmp $(srcdir)/$(ugly_enum_hfile) ) \ + && rm -f $(ugly_enum_hfile).tmp \ + && echo timestamp > $(@F) +$(ugly_stamp_enum_cfile): $(ENUM_HDRS) Makefile + ( cd $(srcdir) && $(GLIB_MKENUMS) \ + --fhead "#include \"$(ugly_enum_hfile)\"\n\n" \ + --fprod "#include \"@filename@\"\n\n" \ + --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype;\n if (G_UNLIKELY (!etype))\n {\n static const G@Type@Value values[] = {" \ + --vprod " { @VALUENAME@, (char*) \"@VALUENAME@\", (char*) \"@valuenick@\" }," \ + --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n\n" \ + $(ENUM_HDRS) ) > $(ugly_enum_cfile).tmp \ + && (cmp -s $(ugly_enum_cfile).tmp $(srcdir)/$(ugly_enum_cfile) || cp $(ugly_enum_cfile).tmp $(srcdir)/$(ugly_enum_cfile) ) \ + && rm -f $(ugly_enum_cfile).tmp \ + && echo timestamp > $(@F) diff --git a/ugly/i18n.mk b/ugly/i18n.mk index 078ac8f6..b2a9d1d7 100644 --- a/ugly/i18n.mk +++ b/ugly/i18n.mk @@ -1 +1,22 @@ -repo/i18n.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = INI_IN_IN_FILES|DESKTOP_IN_FILES + +# $(INI_IN_IN_FILES) should be a list of input *.ini.in.in files +# $(DESKTOP_IN_FILES) should be a list of input *.desktop.in files + +%.ini.in: %.ini.in.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status --file=$(subdir)/$@ + +# %.desktop: %.desktop.in +@MOO_INTLTOOL_DESKTOP_RULE@ + +# %.ini: %.ini.in +@MOO_INTLTOOL_INI_RULE@ + +ugly_ini_in_files = $(INI_IN_IN_FILES:.ini.in.in=.ini.in) +INI_FILES = $(ugly_ini_in_files:.ini.in=.ini) + +DESKTOP_FILES = $(DESKTOP_IN_FILES:.desktop.in=.desktop) + +CLEANFILES += $(INI_FILES) $(ugly_ini_in_files) $(DESKTOP_FILES) +EXTRA_DIST += $(INI_IN_IN_FILES) $(DESKTOP_IN_FILES) diff --git a/ugly/lt.mk b/ugly/lt.mk index 450dc71f..f7780aa6 100644 --- a/ugly/lt.mk +++ b/ugly/lt.mk @@ -1 +1,28 @@ -repo/lt.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = UGLY_LIBS + +noinst_LTLIBRARIES = +noinst_LIBRARIES = + +if MOO_BUILD_SHARED_LIB +noinst_LTLIBRARIES += @MODULE@.la +else +noinst_LIBRARIES += @MODULE@.a +endif + +@MODULE@_la_SOURCES = $(@MODULE@_SOURCES_) +@MODULE@_a_SOURCES = $(@MODULE@_SOURCES_) + +nodist_@MODULE@_la_SOURCES = $(nodist_@MODULE@_SOURCES_) +nodist_@MODULE@_a_SOURCES = $(nodist_@MODULE@_SOURCES_) + +@MODULE@_la_LIBADD = $(@MODULE@_LIBADD_) +@MODULE@_a_LIBADD = $(@MODULE@_LIBADD_) + +@MODULE@_la_LDFLAGS = $(@MODULE@_LDFLAGS_) + +AM_CFLAGS = $(AM_CFLAGS_) +@MODULE@_a_CFLAGS = $(AM_CFLAGS_) + +AM_CXXFLAGS = $(AM_CXXFLAGS_) +@MODULE@_a_CXXFLAGS = $(AM_CXXFLAGS_) diff --git a/ugly/moc-wrapper b/ugly/moc-wrapper new file mode 100644 index 00000000..1df3c966 --- /dev/null +++ b/ugly/moc-wrapper @@ -0,0 +1,22 @@ +#! /bin/sh + +# moc-wrapper moc srcdir output infiles... + +moc="$1" +shift +srcdir="$1" +shift +output="$1" +shift + +cat_args= +moc_args= +for arg do + cat_args="$cat_args $srcdir/$arg" + moc_args="$moc_args -f$arg" +done + +(cat $cat_args | $moc $moc_args -o $output.tmp) || exit 1 +(sed 's/\*\* Created: [^*]*$/** Created: today/' $output.tmp > $output.tmp2) || exit 1 +(cmp -s $output.tmp2 $output || mv $output.tmp2 $output) || exit 1 +rm -f $output.tmp $output.tmp2 diff --git a/ugly/moc.mk b/ugly/moc.mk new file mode 100644 index 00000000..dc21b6d4 --- /dev/null +++ b/ugly/moc.mk @@ -0,0 +1,22 @@ +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = MOC_HDRS + +################################################################################## +# +# moc +# +# input: MOC_HDRS - list of .h files to be moc'ed +# + +ugly_moc_wrapper = $(top_srcdir)/ugly/moc-wrapper + +all-classes-moc.cpp.stamp: $(MOC_HDRS) Makefile $(ugly_moc_wrapper) + $(ugly_moc_wrapper) "$(QT_MOC) $(MOC_FLAGS)" $(srcdir) all-classes-moc.cpp $(MOC_HDRS) && echo stamp > $@ + +ugly_moc_sources = all-classes-moc.cpp +ugly_moc_stamps = all-classes-moc.cpp.stamp + +EXTRA_DIST += $(MOC_HDRS) $(ugly_moc_wrapper) +BUILT_SOURCES += $(ugly_moc_stamps) +CLEANFILES += $(ugly_moc_sources) $(ugly_moc_stamps) +nodist_@MODULE@_SOURCES += $(ugly_moc_sources) diff --git a/ugly/mooui.mk b/ugly/mooui.mk index e6c0ef3d..28fcf85d 100644 --- a/ugly/mooui.mk +++ b/ugly/mooui.mk @@ -1 +1,13 @@ -repo/mooui.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = MOO_UI_FILES + +ugly_ui2h = $(top_srcdir)/ugly/xml2h.sh + +%-ui.h: %.xml $(ugly_ui2h) + $(SHELL) $(ugly_ui2h) `basename "$*" .xml | sed -e "s/-/_/"`_ui_xml $< > $@.tmp && mv $@.tmp $@ + +ugly_ui_sources = $(MOO_UI_FILES:%.xml=%-ui.h) + +BUILT_SOURCES += $(ugly_ui_sources) +CLEANFILES += $(ugly_ui_sources) +EXTRA_DIST += $(MOO_UI_FILES) $(ugly_ui2h) diff --git a/ugly/pch.mk b/ugly/pch.mk new file mode 100644 index 00000000..12350b14 --- /dev/null +++ b/ugly/pch.mk @@ -0,0 +1,34 @@ +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +# UGLY_MK_TRIGGER = PCH_HEADER + +EXTRA_DIST += $(PCH_HEADER) + +# ugly_base_compile_c = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +ugly_base_compile_cxx = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +# ugly_base_compile_objc = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS) + +# COMPILE = $(ugly_base_compile_c) +CXXCOMPILE = $(ugly_base_compile_cxx) +# OBJCCOMPILE = $(ugly_base_compile_objc) + +if MOO_ENABLE_PCH + +BUILT_SOURCES += $(ugly_pch_files) +CLEANFILES += $(ugly_pch_files) + +ugly_pch_name = precompiled-header-name +ugly_pch_files = +# ugly_pch_files += $(ugly_pch_name)-c.gch +ugly_pch_files += $(ugly_pch_name)-c++.gch +ugly_pch_mk = $(top_srcdir)/ugly/pch.mk + +# $(ugly_pch_name)-c.gch: $(PCH_HEADER) $(ugly_pch_mk) +# $(ugly_base_compile_c) -x c-header -c $< -o $@ +$(ugly_pch_name)-c++.gch: $(PCH_HEADER) $(ugly_pch_mk) + $(ugly_base_compile_cxx) -x c++-header -c $< -o $@ + +# COMPILE += -include $(ugly_pch_name)-c -Winvalid-pch +CXXCOMPILE += -include $(ugly_pch_name)-c++ -Winvalid-pch + +endif diff --git a/ugly/qrc.mk b/ugly/qrc.mk new file mode 100644 index 00000000..20757f53 --- /dev/null +++ b/ugly/qrc.mk @@ -0,0 +1,38 @@ +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = RESOURCES + +################################################################################## +# +# qrc +# +# input: RESOURCES - list of .qrc files +# QT_QRC_DEPS +# + +ugly_qrc_name = @MODULE@ +ugly_qrc_cpp = @MODULE@-qrc.cpp +$(ugly_qrc_cpp): $(RESOURCES) $(QT_QRC_DEPS) + $(QT_RCC) -o $(ugly_qrc_cpp).tmp -name $(ugly_qrc_name) \ + $(addprefix $(srcdir)/,$(RESOURCES)) && mv $(ugly_qrc_cpp).tmp $(ugly_qrc_cpp) + +EXTRA_DIST += $(RESOURCES) $(QT_QRC_DEPS) +BUILT_SOURCES += $(ugly_qrc_cpp) +CLEANFILES += $(ugly_qrc_cpp) +nodist_@MODULE@_SOURCES += $(ugly_qrc_cpp) + +dist-hook: + copyfile() { \ + dest="$(distdir)/`dirname $$1`"; \ + test -f $(distdir)/$$1 || { \ + if test -f $(srcdir)/$$1; then \ + $(MKDIR_P) "$$dest" || exit 1; \ + echo cp -p "$(srcdir)/$$1" "$$dest/"; \ + cp -p "$(srcdir)/$$1" "$$dest/" || exit 1; \ + fi; \ + }; \ + } ; \ + for qrc in $(RESOURCES); do \ + for f in `grep '\(.*\)%\1%'`; do \ + copyfile $$f; \ + done; \ + done diff --git a/ugly/qtest.cpp b/ugly/qtest.cpp new file mode 100644 index 00000000..b47cce21 --- /dev/null +++ b/ugly/qtest.cpp @@ -0,0 +1,35 @@ +#include "@test@-t.h" +#include +#include + +#ifndef UnitTestMainClass +#error "`UnitTestMainClass' not defined" +#endif + +#ifndef UnitTestAppClass +#define UnitTestAppClass QApplication +#endif + +namespace moo { +namespace test { + +class Tester { +public: + int exec(int argc, char *argv[]) + { + UnitTestMainClass test; + return QTest::qExec(&test, argc, argv); + } +}; + +} +} + +int main(int argc, char *argv[]) +{ + UnitTestAppClass app(argc, argv); + moo::test::Tester t; + return t.exec(argc, argv); +} + +#include "@test@-test.moc" diff --git a/ugly/qtest.mk b/ugly/qtest.mk new file mode 100644 index 00000000..ffdfb4a4 --- /dev/null +++ b/ugly/qtest.mk @@ -0,0 +1,49 @@ +# -%- lang: sh; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = QTESTS +# UGLY_MK_VARS = EXTRA_PROGRAMS +# UGLY_MK_TYPE = sh + +################################################################################## +# +# qtest +# +# input: QTESTS - list of tests. There must be corresponding -t.h files which +# contain the testing classes. +# + +MODULE=`echo $MODULE | sed 's/\./_/'` + +cat <<\EOFEOF +TESTS = +ugly_qtest_cpp = $(top_srcdir)/ugly/qtest.cpp + +if MOO_ENABLE_UNIT_TESTS + +TESTS += $(QTESTS:=-test) +EXTRA_PROGRAMS += $(QTESTS:=-test) +BUILT_SOURCES += $(QTESTS:=-test.cpp) $(QTESTS:=-test.moc) +CLEANFILES += $(QTESTS:=-test.cpp) $(QTESTS:=-test.moc) + +%-test.cpp: $(ugly_qtest_cpp) + sed -e 's/@test@/$*/g' $(ugly_qtest_cpp) > $*-test.cpp.tmp && mv $*-test.cpp.tmp $*-test.cpp + +%-test.moc: %-t.h + $(QT_MOC) -o$*-test.moc.tmp $(srcdir)/$*-t.h && mv $*-test.moc.tmp $*-test.moc + +EOFEOF + +for name in $QTESTS; do +var=`echo $name | sed 's/-/_/g'` +cat < /dev/stderr + else + echo "$current_func: $@" > /dev/stderr + fi +} + +debug_v() { + if [ "$DEBUG" = "verbose" ]; then + print_debug "$@" + fi +} + +debug() { + if [ "$DEBUG" = "yes" -o "$DEBUG" = "verbose" ]; then + print_debug "$@" + fi +} + +find_input() { + current_func=find_input + debug_v "dir: $1" + if [ -f $1/Makefile.ug ]; then + echo $1/Makefile.ug + for sd in `ls "$1"`; do + if [ -d "$1/$sd" ]; then + debug_v "going into: $1/$sd" + find_input "$1/$sd" + fi + done + fi +} + +preprocess() { + # preprocess input output + sed -e :a -e '/\\$/N; s/\\\n//; ta' "$1" | sed 's/#.*//' > $2 +} + +extract_var() { + # extract_var Makefile NAME + value=`grep '\b'$2'\b' $1` + if [ -n "$value" ]; then + value=`echo "$value" | sed 's/'$2'[ ]*=//'` + fi + value=`echo $value | tr -d " "` + echo "$value" +} + +extract_vars() { + # extract_vars Makefile + grep -E '^[A-Za-z0-9_]+[ \t]*=' $1 | sed 's/^\([a-zA-Z0-9_]*\)[ \t]*=[ \t]*\(.*\)/export \1='"'"'\2'"'"'/g' +} + +extract_meta_var() { + current_func=extract_meta_var + # extract_meta_var Makefile NAME + value=`grep -E '^#[ \t]*\b'$2'\b' $1` + if [ -n "$value" ]; then + value=`echo "$value" | sed 's/^#[ ]*'$2'[ ]*=//'` + fi + value=`echo $value | tr -d " "` + echo "$value" +} + +write_mk() { + # write_mk mk_mod MODULE + echo "" + echo "# begin $1" + echo "" + + case "`extract_meta_var ugly/$1 UGLY_MK_TYPE`" in + sh) + MODULE="$2" /bin/sh -c ". $global_vars && /bin/sh ugly/$1" + ;; + "") + cat ugly/$1 | sed 's/@MODULE@/'$2'/g' + ;; + *) + echo "oops" + exit 1 + ;; + esac + + echo "" + echo 'UGLY_DEPS += $(top_srcdir)/ugly/'$1 + echo 'EXTRA_DIST += $(top_srcdir)/ugly/'$1 + echo "" + echo "# end $1" + echo "" +} + +write_ugly_pre_mk() { + cat << \_EOFEOF +# +# begin ugly stuff +# + +_EOFEOF + cat ugly/repo/ugly-pre.mk +} + +do_makefile() { + current_func=do_makefile + + infile="$1" + subdir=`dirname $infile | sed 's,^\./,,'` + outbase=`basename $infile .ug` + out=$subdir/$outbase.am + + if [ "$subdir" = . ]; then + rel_topdir=. + mk_prefix="mk" + else + rel_topdir=`echo $subdir | sed 's,[^/]*,..,g'` + mk_prefix="$rel_topdir/mk" + fi + + out_tmp=`dirname $out`/.`basename $out`.tmp + out_pp=`dirname $out`/.`basename $out`.pp# + + preprocess $infile $out_pp + + global_vars=`dirname $out`/.globalvars + extract_vars $out_pp > $global_vars + + modname=`extract_var $out_pp MODULE | sed 's/\./_/g'` + debug "processing $infile, output: $out, subdir: $subdir, topdir: $rel_topdir, module: $modname" + + write_ugly_pre_mk > $out_tmp + + want_mk= + all_modnames= + + for file_mk in `cd ugly && ls *.mk 2>/dev/null`; do + if [ ! -f ugly/$file_mk ]; then + continue + fi + + trigger=`extract_meta_var ugly/$file_mk UGLY_MK_TRIGGER` + if [ -n "$trigger" ]; then + if grep -E "$trigger" $out_pp > /dev/null 2>&1; then + debug $out matches $trigger from $file_mk + want_mk="$want_mk $file_mk" + continue + fi + fi + + trigger=`extract_meta_var ugly/$file_mk UGLY_MODULE_TRIGGER` + if [ -n "$trigger" ]; then + if grep -E "$trigger" $out_pp > /dev/null 2>&1; then + lines=`grep -E "$trigger" $out_pp 2>/dev/null` + for l in $lines; do + w=`echo $l | grep -E "$trigger" | tr -d " "` + if [ -n "$w" ]; then + m=`echo $w | sed 's/\(\w*\)_'$trigger'.*/\1/'` + if [ "$m" != "$w" ]; then + debug found module $m + all_modnames="$all_modnames $m" + eval "${m}_written=false" + eval "${m}_want_mk=\"\$${m}_want_mk $file_mk\"" + # if [ -n "$m" -a "$m" != "$w" ]; then + # debug "$w in $out matches $trigger from $file_mk" + # write_mk $file_mk $m >> $out_tmp + # fi + fi + fi + done + fi + fi + done + + for file_mk in $want_mk; do + debug "writing code for $file_mk" + + vars=`extract_meta_var ugly/$file_mk UGLY_MK_VARS` + debug "extra vars: $vars" + for var in $vars; do + eval "var_written=\$var_${var}_written" + if [ "$var_written" = "true" ]; then + continue + fi + debug_v writing "$var" + eval "var_${var}_written=true" + echo "$var =" >> $out_tmp + done + done + + for mod in $all_modnames; do + eval "mod_written=\$${mod}_written" + if $mod_written; then + continue + fi + + debug "writing code for module $mod" + eval "${mod}_written=true" + + eval "mod_want_mk=\$${mod}_want_mk" + debug "writing variables from $mod_want_mk for module '$mod'" + + mod_vars= + for file_mk in $mod_want_mk; do + mod_vars="$mod_vars `extract_meta_var ugly/$file_mk UGLY_MODULE_VARS`" + done + debug "extra vars: $mod_vars" + for var in $mod_vars; do + eval "mod_var_${var}_written=false" + done + for var in $mod_vars; do + eval "mod_var_written=\$mod_var_${var}_written" + if $mod_var_written; then + continue + fi + debug_v writing "${mod}_$var" + eval "mod_var_${var}_written=true" + echo "${mod}_$var =" >> $out_tmp + done + done + + cat >> $out_tmp << _EOFEOF + +# +# end ugly stuff +# + +_EOFEOF + + cat $infile >> $out_tmp || exit $? + + cat >> $out_tmp << _EOFEOF + +# +# begin ugly stuff +# + +_EOFEOF + + for file_mk in $want_mk; do + write_mk $file_mk $modname >> $out_tmp + done + + for mod in $all_modnames; do + eval "${mod}_written=false" + done + for mod in $all_modnames; do + eval "mod_written=\$${mod}_written" + if $mod_written; then + continue + fi + + debug "writing $file_mk code for module $mod" + eval "${mod}_written=true" + + eval "mod_want_mk=\$${mod}_want_mk" + debug "doing $mod_want_mk for module '$mod'" + + for file_mk in $mod_want_mk; do + write_mk $file_mk $mod >> $out_tmp + done + done + + cat ugly/repo/bdist.mk >> $out_tmp + cat ugly/repo/ugly-post.mk >> $out_tmp + + if [ "$subdir" = . ]; then + cat ugly/repo/bdist-top.mk >> $out_tmp + cat ugly/repo/ugly-top.mk >> $out_tmp + else + cat ugly/repo/ugly-sub.mk >> $out_tmp + fi + + cat >> $out_tmp << _EOFEOF + +# +# end ugly stuff +# +_EOFEOF + + rm -f $out_pp + rm -f $global_vars + mv $out_tmp $out || exit $? +} + +ugly_stamp=m4/ugly-stamp.m4 + +generate_ugly_stamp() { + out_tmp="$ugly_stamp.tmp" + echo "AC_DEFUN([UGLY_FAKE_FUN],[" > $out_tmp || exit 1 + for arg; do + if [ ! -f "$arg" ]; then + echo "OOPS" >&2 + elif [ ! "$arg" -ef "$ugly_stamp" ]; then + md5=`md5sum "$arg" | awk '{ print $1; }'` + name=`basename "$arg"` + echo "$md5 $name" >> $out_tmp + fi + done + echo "])" >> $out_tmp + echo >> $out_tmp + echo "AC_DEFUN([UGLY_STAMP],[])" >> $out_tmp + mv $out_tmp $ugly_stamp || exit 1 +} + +if [ -z "$1" ]; then + if [ ! -f "$ugly_stamp" ]; then + generate_ugly_stamp + fi + top_srcdir=. + input=`find_input .` +elif [ "$1" = "--stamp" ]; then + shift + generate_ugly_stamp "$@" + top_srcdir=. + input=`find_input .` +else + top_srcdir="$1" + input="$2/Makefile.ug" +fi + +cd $top_srcdir +for f in $input; do + ( do_makefile "$f" ) +done diff --git a/ugly/ugly-post.mk b/ugly/ugly-post.mk new file mode 100644 index 00000000..9e5fd897 --- /dev/null +++ b/ugly/ugly-post.mk @@ -0,0 +1,10 @@ +# begin ugly-post.mk +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +$(srcdir)/Makefile.am: $(srcdir)/Makefile.ug $(UGLY_DEPS) + @top_srcdir=`cd $(top_srcdir) && pwd`; \ + echo 'cd $(srcdir) && $(SHELL) $$top_srcdir/ugly/ugly $$top_srcdir $(subdir)'; \ + cd $(srcdir) && $(SHELL) $$top_srcdir/ugly/ugly $$top_srcdir $(subdir) && exit 0; \ + exit 1; + +# end ugly-post.mk diff --git a/ugly/ugly-pre.mk b/ugly/ugly-pre.mk new file mode 100644 index 00000000..ef487599 --- /dev/null +++ b/ugly/ugly-pre.mk @@ -0,0 +1,52 @@ +# begin ugly-pre.mk +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +EXTRA_DIST = +BUILT_SOURCES = +CLEANFILES = +DISTCLEANFILES = + +EXTRA_DIST += \ + Makefile.ug + +BDIST_FILES = +BDIST_EXTRA = + +UGLY = $(top_srcdir)/ugly/ugly +UGLY_DEPS = \ + $(UGLY) \ + $(top_srcdir)/ugly/repo/ugly-pre.mk \ + $(top_srcdir)/ugly/repo/ugly-post.mk \ + $(top_srcdir)/ugly/repo/ugly-sub.mk \ + $(top_srcdir)/ugly/repo/bdist.mk + +UGLY_STAMP_DEPS = $(filter-out $(top_srcdir)/m4/ugly-stamp.m4,$(am__aclocal_m4_deps)) + +BUILT_SOURCES += ugly-pre-build-stamp +UGLY_PRE_BUILD_TARGETS = +UGLY_CLEAN_TARGETS = +ugly-pre-build-stamp: $(UGLY_PRE_BUILD_TARGETS) + @echo stamp > ugly-pre-build-stamp +clean-local: $(UGLY_CLEAN_TARGETS) + +UGLY_SUBDIRS = +UGLY_PRE_BUILD_TARGETS += ugly-subdirs-stamp +UGLY_CLEAN_TARGETS += delete-ugly-subdir-makefile +ugly-subdirs-stamp: Makefile $(top_srcdir)/ugly/repo/ugly-subdir-Makefile + @if test -n "$(UGLY_SUBDIRS)"; then \ + for d in $(UGLY_SUBDIRS); do \ + mkdir -p $$d || exit 1; \ + cp $(top_srcdir)/ugly/repo/ugly-subdir-Makefile $$d/Makefile || exit 1; \ + done; \ + fi + @echo stamp > ugly-subdirs-stamp +delete-ugly-subdir-makefile: + @if test -n "$(UGLY_SUBDIRS)"; then \ + for d in $(UGLY_SUBDIRS); do \ + rm -f $$d/Makefile || exit 1; \ + done; \ + fi + +CLEANFILES += ugly-pre-build-stamp ugly-subdirs-stamp + +# end ugly-pre.mk diff --git a/ugly/ugly-sub.mk b/ugly/ugly-sub.mk new file mode 100644 index 00000000..f713d239 --- /dev/null +++ b/ugly/ugly-sub.mk @@ -0,0 +1,7 @@ +# begin ugly-sub.mk +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +$(top_srcdir)/m4/ugly-stamp.m4: $(UGLY_STAMP_DEPS) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) m4/ugly-stamp.m4 + +# end ugly-sub.mk diff --git a/ugly/ugly-subdir-Makefile b/ugly/ugly-subdir-Makefile new file mode 100644 index 00000000..d09b308a --- /dev/null +++ b/ugly/ugly-subdir-Makefile @@ -0,0 +1,2 @@ +%.lo %.o: + @cd .. && make $@ diff --git a/ugly/ugly-top.mk b/ugly/ugly-top.mk new file mode 100644 index 00000000..c4762e75 --- /dev/null +++ b/ugly/ugly-top.mk @@ -0,0 +1,25 @@ +# begin ugly-top.mk +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- + +EXTRA_DIST += \ + ugly/ugly \ + ugly/repo/ugly-top.mk \ + ugly/repo/ugly-sub.mk \ + ugly/repo/ugly-pre.mk \ + ugly/repo/ugly-post.mk \ + ugly/repo/bdist.mk \ + ugly/repo/bdist-top.mk \ + ugly/repo/ugly-subdir-Makefile + +UGLY_DEPS += \ + ugly/repo/bdist-top.mk \ + ugly/repo/ugly-top.mk + +$(top_srcdir)/m4/ugly-stamp.m4: $(UGLY_STAMP_DEPS) + files=""; for file in $(UGLY_STAMP_DEPS); do \ + dir=`dirname $$file`; dir=`cd $$dir && pwd`; \ + files="$$files $$dir/`basename $$file`"; \ + done && \ + cd $(srcdir) && $(SHELL) ./ugly/ugly --stamp $$files + +# end ugly-top.mk diff --git a/ugly/uic-wrapper b/ugly/uic-wrapper new file mode 100644 index 00000000..ad3a9213 --- /dev/null +++ b/ugly/uic-wrapper @@ -0,0 +1,19 @@ +#! /bin/sh + +# uic-wrapper uic srcdir infiles... + +uic="$1" +shift +srcdir="$1" +shift + +gen_one() { + "$uic" -o ui_$1.h.tmp $srcdir/$1.ui || exit 1 + sed 's/\*\* Created: [^*]*$/** Created: today/' ui_$1.h.tmp > ui_$*.h.tmp2 || exit 1 + (cmp -s ui_$1.h.tmp2 ui_$1.h || mv ui_$1.h.tmp2 ui_$1.h) || exit 1 + rm -f ui_$1.h.tmp ui_$1.h.tmp2 || exit 1 +} + +for arg do + gen_one $arg +done diff --git a/ugly/uic.mk b/ugly/uic.mk new file mode 100644 index 00000000..357d010a --- /dev/null +++ b/ugly/uic.mk @@ -0,0 +1,20 @@ +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = FORMS + +################################################################################## +# +# uic +# +# input: FORMS - list of .ui files +# + +ugly_uic_wrapper = $(top_srcdir)/ugly/uic-wrapper +ugly_ui_names = $(patsubst %.ui,%,$(FORMS)) +ui.h.stamp: $(FORMS) Makefile $(ugly_uic_wrapper) + $(ugly_uic_wrapper) $(QT_UIC) $(srcdir) $(ugly_ui_names) && echo stamp > ui.h.stamp + +EXTRA_DIST += $(FORMS) $(ugly_uic_wrapper) +BUILT_SOURCES += ui.h.stamp +ugly_ui_headers = $(patsubst %.ui,ui_%.h,$(FORMS)) +CLEANFILES += $(ugly_ui_headers) ui.h.stamp +nodist_@MODULE@_SOURCES += $(ugly_ui_headers) diff --git a/ugly/xml2h.sh b/ugly/xml2h.sh index 4434143b..499578f2 100644 --- a/ugly/xml2h.sh +++ b/ugly/xml2h.sh @@ -1 +1,35 @@ -repo/xml2h.sh \ No newline at end of file +#! /bin/sh + +define=false + +while true; do + case "$1" in + --define) + define=true + shift + ;; + *) + break + ;; + esac +done + +if [ $# != 2 ]; then + echo "usage: $0 [--define] " > /dev/stderr + exit 1 +fi + +VARNAME="$1" +INPUT="$2" + +echo "/* -*- C -*- */" + +if $define; then + echo "#define $VARNAME \\" + sed 's/"/\\"/g' "$INPUT" | sed 's/^\(.*\)$/"\1\\n"\\/' || exit $? + echo "\"\"" +else + echo "static const char $VARNAME [] = \"\"" + sed 's/"/\\"/g' "$INPUT" | sed 's/^\(.*\)$/"\1\\n"/' || exit $? + echo ";" +fi diff --git a/ugly/yacc.mk b/ugly/yacc.mk index 7b78adf9..fae1185e 100644 --- a/ugly/yacc.mk +++ b/ugly/yacc.mk @@ -1 +1,25 @@ -repo/yacc.mk \ No newline at end of file +# -%- lang: makefile; indent-width: 8; use-tabs: true -%- +# UGLY_MK_TRIGGER = YACC_FILES|YACC_PP_FILES + +# $(YACC_FILES) should be a list of .y files +# $(YACC_PP_FILES) should be a list of .y files + +# bison_verbose = -v + +$(srcdir)/%-yacc.h: $(srcdir)/%.y + touch $@ +$(srcdir)/%-yacc.c: $(srcdir)/%.y + bison $(bison_verbose) -o $@ -d $< +$(srcdir)/%-yacc.cpp: $(srcdir)/%.y + bison $(bison_verbose) -o $@ -d $< && \ + mv $(srcdir)/$*-yacc.hpp $(srcdir)/$*-yacc.h + +ugly_yacc_sources = \ + $(YACC_FILES:.y=-yacc.c) \ + $(YACC_FILES:.y=-yacc.h) \ + $(YACC_PP_FILES:.y=-yacc.cpp) \ + $(YACC_PP_FILES:.y=-yacc.h) + +BUILT_SOURCES += $(ugly_yacc_sources) +EXTRA_DIST += $(YACC_FILES) $(YACC_PP_FILES) +@MODULE@_SOURCES += $(ugly_yacc_sources)