Revision: 2439
http://geany.svn.sourceforge.net/geany/?rev=2439&view=rev
Author: eht16
Date: 2008-04-02 06:58:25 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Avoid setting line number margin twice when creating new tabs, also don't call gtk_notebook_set_current_page() explicitly as it isn't necessary.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-04-02 13:52:01 UTC (rev 2438)
+++ trunk/ChangeLog 2008-04-02 13:58:25 UTC (rev 2439)
@@ -9,6 +9,10 @@
* po/intl_stats.sh, scripts/intl_stats.sh:
Move intl_stats.sh script to scripts directory and make it working
from top source directory.
+ * src/document.c:
+ Avoid setting line number margin twice when creating new tabs, also
+ don't call gtk_notebook_set_current_page() explicitly as it isn't
+ necessary.
2008-04-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2008-04-02 13:52:01 UTC (rev 2438)
+++ trunk/src/document.c 2008-04-02 13:58:25 UTC (rev 2439)
@@ -419,7 +419,6 @@
sci_set_tab_indents(sci, editor_prefs.use_tab_to_indent);
sci_set_symbol_margin(sci, editor_prefs.show_markers_margin);
- sci_set_line_numbers(sci, editor_prefs.show_linenumber_margin, 0);
sci_set_lines_wrapped(sci, editor_prefs.line_wrapping);
sci_set_scrollbar_mode(sci, editor_prefs.show_scrollbars);
sci_set_caret_policy_x(sci, CARET_JUMPS | CARET_EVEN, 0);
@@ -500,7 +499,6 @@
treeviews_openfiles_add(new_idx); /* sets this->iter */
tabnum = notebook_new_tab(new_idx);
- gtk_notebook_set_current_page(GTK_NOTEBOOK(app->notebook), tabnum);
/* select document in sidebar */
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2438
http://geany.svn.sourceforge.net/geany/?rev=2438&view=rev
Author: eht16
Date: 2008-04-02 06:52:01 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Move intl_stats.sh script to scripts directory and make it working from top source directory.
Modified Paths:
--------------
trunk/ChangeLog
Added Paths:
-----------
trunk/scripts/intl_stats.sh
Removed Paths:
-------------
trunk/po/intl_stats.sh
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-04-02 13:48:39 UTC (rev 2437)
+++ trunk/ChangeLog 2008-04-02 13:52:01 UTC (rev 2438)
@@ -6,6 +6,9 @@
* src/callbacks.c, src/main.h, src/project.c:
Ignore notebook_switch_page signal handler when closing projects
to speed it up a little bit with many session files.
+ * po/intl_stats.sh, scripts/intl_stats.sh:
+ Move intl_stats.sh script to scripts directory and make it working
+ from top source directory.
2008-04-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Deleted: trunk/po/intl_stats.sh
===================================================================
--- trunk/po/intl_stats.sh 2008-04-02 13:48:39 UTC (rev 2437)
+++ trunk/po/intl_stats.sh 2008-04-02 13:52:01 UTC (rev 2438)
@@ -1,100 +0,0 @@
-#!/bin/sh
-
-# Little shell script to display some basic statistics about Geany's translation
-# files. It also checks the menu accelerators.
-#
-# Copyright 2007-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
-# Copyright 2007-2008 Frank Lanitz <enrico(dot)troeger(at)uvena(dot)de>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-check_accelerators=""
-linguas=""
-me=`basename $0`
-
-
-usage()
-{
- echo "usage: $me [OPTION] [languages...]"
- echo
- echo "OPTIONs are:"
- echo "-h --help this help screen"
- echo "-a --accelerators check also for menu accelerators"
- echo "languages list of language codes which should be tested"
- echo
- echo "example: $me -a de fr hu"
-}
-
-
-# parse cmd line arguments
-while [ $# -gt 0 ]
-do
- case $1 in
- --accelerators)
- check_accelerators="--check-accelerators=_"
- ;;
- -a)
- check_accelerators="--check-accelerators=_"
- ;;
- --help)
- usage;
- exit 1;
- ;;
- -h)
- usage;
- exit 1;
- ;;
- *)
- linguas="$linguas "$1
- ;;
- esac
- shift
-done
-
-
-
-# if no languages where specified on the command line, take all listed languages in LINGUAS
-if [ -z "$linguas" ]
-then
- linguas=`sed -e '/^#/d' LINGUAS`
-fi
-
-# dash and zsh don't need the -e switch to echo, bash does
-# maybe there is a better way to detect whether we are running on a bash
-eswitch=""
-if [ "$BASH" ]
-then
- eswitch="-e"
-fi
-
-# do the work
-if [ $check_accelerators ]
-then
- for lang in $linguas
- do
- msgfmt --check --statistics $check_accelerators $lang.po;
- done
-else
- for lang in $linguas
- do
- # maybe the regexp can be optimized, regexps are not my best friends
- creationdate=`grep "PO-Revision-Date:" $lang.po | sed 's/.*: \([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}[+|-][0-9]\{4\}\).*/\1/'`
- echo -n $eswitch $lang"\t("$creationdate"):\t"
- msgfmt --check --statistics $lang.po;
- done
-fi
-
-
Added: trunk/scripts/intl_stats.sh
===================================================================
--- trunk/scripts/intl_stats.sh (rev 0)
+++ trunk/scripts/intl_stats.sh 2008-04-02 13:52:01 UTC (rev 2438)
@@ -0,0 +1,100 @@
+#!/bin/sh
+
+# Little shell script to display some basic statistics about Geany's translation
+# files. It also checks the menu accelerators.
+#
+# Copyright 2007-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+# Copyright 2007-2008 Frank Lanitz <enrico(dot)troeger(at)uvena(dot)de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+check_accelerators=""
+linguas=""
+me=`basename $0`
+
+
+usage()
+{
+ echo "usage: $me [OPTION] [languages...]"
+ echo
+ echo "OPTIONs are:"
+ echo "-h --help this help screen"
+ echo "-a --accelerators check also for menu accelerators"
+ echo "languages list of language codes which should be tested"
+ echo
+ echo "example: $me -a de fr hu"
+}
+
+
+# parse cmd line arguments
+while [ $# -gt 0 ]
+do
+ case $1 in
+ --accelerators)
+ check_accelerators="--check-accelerators=_"
+ ;;
+ -a)
+ check_accelerators="--check-accelerators=_"
+ ;;
+ --help)
+ usage;
+ exit 1;
+ ;;
+ -h)
+ usage;
+ exit 1;
+ ;;
+ *)
+ linguas="$linguas "$1
+ ;;
+ esac
+ shift
+done
+
+
+
+# if no languages where specified on the command line, take all listed languages in LINGUAS
+if [ -z "$linguas" ]
+then
+ linguas=`sed -e '/^#/d' po/LINGUAS`
+fi
+
+# dash and zsh don't need the -e switch to echo, bash does
+# maybe there is a better way to detect whether we are running on a bash
+eswitch=""
+if [ "$BASH" ]
+then
+ eswitch="-e"
+fi
+
+# do the work
+if [ $check_accelerators ]
+then
+ for lang in $linguas
+ do
+ msgfmt --check --statistics $check_accelerators po/$lang.po;
+ done
+else
+ for lang in $linguas
+ do
+ # maybe the regexp can be optimized, regexps are not my best friends
+ creationdate=`grep "PO-Revision-Date:" po/$lang.po | sed 's/.*: \([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}[+|-][0-9]\{4\}\).*/\1/'`
+ echo -n $eswitch $lang"\t("$creationdate"):\t"
+ msgfmt --check --statistics po/$lang.po;
+ done
+fi
+
+
Property changes on: trunk/scripts/intl_stats.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2437
http://geany.svn.sourceforge.net/geany/?rev=2437&view=rev
Author: eht16
Date: 2008-04-02 06:48:39 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Ignore notebook_switch_page signal handler when closing projects to speed it up a little bit with many session files.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/callbacks.c
trunk/src/main.h
trunk/src/project.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-04-02 13:26:38 UTC (rev 2436)
+++ trunk/ChangeLog 2008-04-02 13:48:39 UTC (rev 2437)
@@ -3,6 +3,9 @@
* src/dialogs.c:
Fix GTK warnings in open file dialog by using a positive response ID
for the View button.
+ * src/callbacks.c, src/main.h, src/project.c:
+ Ignore notebook_switch_page signal handler when closing projects
+ to speed it up a little bit with many session files.
2008-04-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c 2008-04-02 13:26:38 UTC (rev 2436)
+++ trunk/src/callbacks.c 2008-04-02 13:48:39 UTC (rev 2437)
@@ -75,9 +75,6 @@
#endif
-/* represents the state while closing all tabs(used to prevent notebook switch page signals) */
-static gboolean closing_all = FALSE;
-
/* flag to indicate the explicit change of a toggle button of the toolbar menu and so the
* toggled callback should ignore the change since it is not triggered by the user */
static gboolean ignore_toolbar_toggle = FALSE;
@@ -263,7 +260,7 @@
gboolean ret = TRUE;
gint i, max = gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook));
- closing_all = TRUE;
+ main_status.closing_all = TRUE;
for(i = 0; i < max; i++)
{
if (! document_remove(0))
@@ -272,7 +269,7 @@
break;
}
}
- closing_all = FALSE;
+ main_status.closing_all = FALSE;
tm_workspace_update(TM_WORK_OBJECT(app->tm_workspace), TRUE, TRUE, FALSE);
/* if cancel is clicked, cancel the complete exit process */
return ret;
@@ -782,7 +779,8 @@
{
gint idx;
- if (closing_all) return;
+ if (main_status.opening_session_files || main_status.closing_all)
+ return;
/* guint == -1 seems useless, but it isn't! */
if (page_num == (guint) -1 && page != NULL)
@@ -790,7 +788,7 @@
else
idx = document_get_n_idx(page_num);
- if (idx >= 0 && main_status.opening_session_files == FALSE)
+ if (idx >= 0)
{
treeviews_select_openfiles_item(idx);
document_set_text_changed(idx); /* also sets window title and status bar */
Modified: trunk/src/main.h
===================================================================
--- trunk/src/main.h 2008-04-02 13:26:38 UTC (rev 2436)
+++ trunk/src/main.h 2008-04-02 13:48:39 UTC (rev 2437)
@@ -39,6 +39,8 @@
typedef struct GeanyStatus
{
gboolean opening_session_files; /* state at startup while opening session files */
+ gboolean closing_all; /* the state while closing all tabs
+ * (used to prevent notebook switch page signals) */
gboolean quitting; /* state when Geany is quitting completely */
gboolean main_window_realized;
}
Modified: trunk/src/project.c
===================================================================
--- trunk/src/project.c 2008-04-02 13:26:38 UTC (rev 2436)
+++ trunk/src/project.c 2008-04-02 13:48:39 UTC (rev 2437)
@@ -329,11 +329,13 @@
if (project_prefs.project_session)
{
/* close all existing tabs first */
+ main_status.closing_all = TRUE;
for (i = 0; i < max; i++)
{
if (! document_remove(0))
break;
}
+ main_status.closing_all = FALSE;
/* after closing all tabs let's open the tabs found in the default config */
if (open_default == TRUE && cl_options.load_session)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2435
http://geany.svn.sourceforge.net/geany/?rev=2435&view=rev
Author: ntrel
Date: 2008-04-01 08:58:34 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Update for ntrel's changes.
Modified Paths:
--------------
trunk/NEWS
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2008-04-01 13:12:29 UTC (rev 2434)
+++ trunk/NEWS 2008-04-01 15:58:34 UTC (rev 2435)
@@ -1,3 +1,49 @@
+Geany 0.14 (TBA)
+
+ General:
+ * Don't beep when using Replace All in Session unless all open files
+ have no replacements (fixes #1893796).
+ * Only use filetype detection after Save As, not on every save when the
+ filetype is None (fixes #1891778).
+ * Make Go to Tag commands look for the tag in the current document
+ before searching the workspace.
+ * Check file on disk for changes also when pressing a key.
+ * Ignore documents with no absolute path when saving session files.
+ * Fix segfault with Run command when a project is open and the current
+ file's filetype has no run command.
+ * Make Next Error and Next Message commands add positions to the
+ navigation queue, so the user can move backwards through the list items
+ and return to where they were.
+
+ Interface:
+ * When closing a tab when using left-to-right tabs, focus the next
+ document, not the previous.
+ * Move Load Tags item from File to Tools menu.
+
+ Editor:
+ * Don't scroll the editor view if it is unnecessary when using Find
+ Next/Previous, Find Selected, incremental search, Go to Marker or Go to
+ Matching Brace commands.
+ * Fix bug with showing macro list items all on one line.
+ * Fix Python auto-indentation when line endings are set to CR/LF.
+
+ Windows:
+ * Replace untitled file header filename after Save As and add to recent
+ files on Windows too.
+
+ Plugins:
+ * Add configurable plugin keybindings support.
+ * Add a HTML Characters keybinding to show the dialog.
+ * Rename VCDiff plugin Version Diff.
+
+ Plugin API:
+ * Add PLUGIN_KEY_GROUP and keybindings_set_item() to setup a keybinding
+ group.
+ * keybindings_send_command() arguments have changed because of
+ keybinding groups - this breaks the API for plugins already using it.
+ * Make VERSION_CHECK deprecated in favour of PLUGIN_VERSION_CHECK.
+
+
Geany 0.13 (February 05, 2008)
General:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2434
http://geany.svn.sourceforge.net/geany/?rev=2434&view=rev
Author: ntrel
Date: 2008-04-01 06:12:29 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Make navqueue_goto_line() ignore an invalid old document index, and
ignore any documents that don't have a tagmanager work object.
Make Next Error and Next Message commands add positions to the
navqueue, so the user can return to where they were and also so they
can move backwards through error and message items.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/msgwindow.c
trunk/src/navqueue.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-04-01 12:53:26 UTC (rev 2433)
+++ trunk/ChangeLog 2008-04-01 13:12:29 UTC (rev 2434)
@@ -4,6 +4,12 @@
Move Load Tags item from File to Tools menu.
Capitalize Page Setup item.
Add separator before Plugin Manager item.
+ * src/navqueue.c, src/msgwindow.c:
+ Make navqueue_goto_line() ignore an invalid old document index, and
+ ignore any documents that don't have a tagmanager work object.
+ Make Next Error and Next Message commands add positions to the
+ navqueue, so the user can return to where they were and also so they
+ can move backwards through error and message items.
2008-03-31 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/msgwindow.c
===================================================================
--- trunk/src/msgwindow.c 2008-04-01 12:53:26 UTC (rev 2433)
+++ trunk/src/msgwindow.c 2008-04-01 13:12:29 UTC (rev 2434)
@@ -41,6 +41,7 @@
#include "build.h"
#include "main.h"
#include "vte.h"
+#include "navqueue.h"
#include <string.h>
#include <stdlib.h>
@@ -477,6 +478,7 @@
gchar *string;
gboolean ret = FALSE;
GdkColor *color;
+ gint old_idx = document_get_cur_idx();
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(msgwindow.tree_compiler));
if (gtk_tree_selection_get_selected(selection, &model, &iter))
@@ -515,11 +517,12 @@
if (idx < 0) /* file not already open */
idx = document_open_file(filename, FALSE, NULL, NULL);
- if (idx >= 0 && doc_list[idx].is_valid)
+ if (DOC_IDX_VALID(idx))
{
if (! doc_list[idx].changed) /* if modified, line may be wrong */
document_set_indicator(idx, line - 1);
- ret = utils_goto_line(idx, line);
+
+ ret = navqueue_goto_line(old_idx, idx, line);
}
}
g_free(filename);
@@ -775,13 +778,14 @@
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(msgwindow.tree_msg));
if (gtk_tree_selection_get_selected(selection, &model, &iter))
{
- gint idx, line;
+ gint idx, line, old_idx = document_get_cur_idx();
gchar *string;
gtk_tree_model_get(model, &iter, 0, &line, 1, &idx, 3, &string, -1);
if (line >= 0 && idx >= 0)
{
- ret = utils_goto_line(idx, line); /* checks valid idx */
+ if (DOC_IDX_VALID(idx))
+ ret = navqueue_goto_line(old_idx, idx, line);
}
else if (line < 0 && string != NULL)
{
@@ -791,8 +795,8 @@
{
/* use document_open_file to find an already open file, or open it in place */
idx = document_open_file(filename, FALSE, NULL, NULL);
- /* utils_goto_file_line will check valid filename. */
- ret = utils_goto_file_line(filename, FALSE, line);
+ if (DOC_IDX_VALID(idx))
+ ret = navqueue_goto_line(old_idx, idx, line);
}
g_free(filename);
}
Modified: trunk/src/navqueue.c
===================================================================
--- trunk/src/navqueue.c 2008-04-01 12:53:26 UTC (rev 2433)
+++ trunk/src/navqueue.c 2008-04-01 13:12:29 UTC (rev 2434)
@@ -134,24 +134,28 @@
}
-/* Adds the current document position to the queue before adding the new position.
- * line is counted with 1 as the first line, not 0. */
+/* Adds old file position and new file position to the navqueue, then goes to the new position.
+ * Currently navqueue positions are only be added for documents that have a tagmanager work
+ * object.
+ * @param if old_idx is not valid (e.g. -1), no old position is set.
+ * @param line is counted with 1 as the first line, not 0. */
gboolean navqueue_goto_line(gint old_idx, gint new_idx, gint line)
{
- g_return_val_if_fail(DOC_IDX_VALID(old_idx), FALSE);
g_return_val_if_fail(DOC_IDX_VALID(new_idx), FALSE);
- g_return_val_if_fail(doc_list[new_idx].tm_file, FALSE);
g_return_val_if_fail(line >= 1, FALSE);
- /* first add old file as old position */
- if (doc_list[old_idx].tm_file)
+ /* first add old file position */
+ if (DOC_IDX_VALID(old_idx) && doc_list[old_idx].tm_file)
{
gint cur_line = sci_get_current_line(doc_list[old_idx].sci);
add_new_position(doc_list[old_idx].tm_file->file_name, cur_line + 1);
}
- add_new_position(doc_list[new_idx].tm_file->file_name, line);
+ /* now add new file position */
+ if (doc_list[new_idx].tm_file)
+ add_new_position(doc_list[new_idx].tm_file->file_name, line);
+
return utils_goto_line(new_idx, line);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2433
http://geany.svn.sourceforge.net/geany/?rev=2433&view=rev
Author: ntrel
Date: 2008-04-01 05:53:26 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Add scripts folder for any useful scripts to work on code.
These scripts are not distributed with Geany, and are only in SVN.
Add changelist.pl to group and reverse ChangeLog entries, useful for writing NEWS.
Add missing-mnemonics.sh, to search for missing menu item mnemonics.
Added Paths:
-----------
trunk/scripts/
trunk/scripts/changelist.pl
trunk/scripts/missing-mnemonics.sh
Added: trunk/scripts/changelist.pl
===================================================================
--- trunk/scripts/changelist.pl (rev 0)
+++ trunk/scripts/changelist.pl 2008-04-01 12:53:26 UTC (rev 2433)
@@ -0,0 +1,54 @@
+#!/usr/bin/perl -w
+# Author: Nick Treleaven
+# License: GPL V2 or later
+
+# Searches a ChangeLog file for a line matching 'matchstring', then matches
+# all lines until two consecutive empty lines are found. The process then
+# repeats until all matching blocks of text are found.
+# Results are printed in reverse, hence in chronological order (as ChangeLogs
+# are usually written in reverse date order).
+
+use strict;
+
+my $scriptname = "changelist";
+my $argc = $#ARGV + 1;
+
+($argc == 2)
+ or die "Usage:\n$scriptname matchstring changelogfile\n";
+
+my ($matchstr, $infile) = @ARGV;
+
+open(INPUT, $infile)
+ or die "Couldn't open $infile for reading: $!\n";
+
+my $entry; # the current matching block of text
+my @entries;
+my $found = 0; # if we're in a matching block of text
+my $blank = 0; # whether the last line was empty
+
+while (<INPUT>) {
+ my $line = $_; # read a line, including \n char
+
+ if (! $found) {
+ ($line =~ m/$matchstr/) and $found = 1;
+ } else {
+ if (length($line) <= 1) # current line is empty
+ {
+ if ($blank > 0) { # previous line was also empty
+ push(@entries, $entry); # append entry
+ $entry = "";
+ $found = 0; # now look for next match
+ $blank = 0;
+ }
+ else {
+ $blank = 1;
+ }
+ }
+ }
+ $found and $entry .= $line;
+}
+close(INPUT);
+
+foreach $entry (reverse @entries) {
+ print "$entry\n\n";
+}
Property changes on: trunk/scripts/changelist.pl
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/scripts/missing-mnemonics.sh
===================================================================
--- trunk/scripts/missing-mnemonics.sh (rev 0)
+++ trunk/scripts/missing-mnemonics.sh 2008-04-01 12:53:26 UTC (rev 2433)
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Author: Nick Treleaven
+# License: GPL V2 or later
+# Usage: check-mnemonics.sh [file list]
+
+if [[ $1 == '' ]]; then
+ FILES='src/*.c plugins/*.c'
+else
+ FILES=$1
+fi
+
+fgrep -n 'menu_item_new' $FILES |egrep -v '".*_[a-zA-Z0-9]' |fgrep -v from_stock |fgrep -v '_("No custom commands defined.")' |fgrep -vi '_("invisible")' |egrep '_\(".+' --color
Property changes on: trunk/scripts/missing-mnemonics.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.