Revision: 629
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=629&view=rev
Author: dmaphy
Date: 2009-05-09 17:09:11 +0000 (Sat, 09 May 2009)
Log Message:
-----------
fix typo in INSTALL (oops)
Modified Paths:
--------------
trunk/geanygdb/INSTALL
Modified: trunk/geanygdb/INSTALL
===================================================================
--- trunk/geanygdb/INSTALL 2009-05-09 14:35:44 UTC (rev 628)
+++ trunk/geanygdb/INSTALL 2009-05-09 17:09:11 UTC (rev 629)
@@ -20,7 +20,7 @@
./configure
make
cp src/.libs/geanygdb.so ~/.config/geany/plugins
- cp src/geanygdb_ttyhelper ~/.config/geany/plugins/geanygdb/ttyhelper/
+ cp src/ttyhelper ~/.config/geany/plugins/geanygdb/ttyhelper
Third
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 627
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=627&view=rev
Author: dmaphy
Date: 2009-05-07 22:48:32 +0000 (Thu, 07 May 2009)
Log Message:
-----------
add copyright hint to ttyhelper.c
Modified Paths:
--------------
trunk/geanygdb/src/ttyhelper.c
Modified: trunk/geanygdb/src/ttyhelper.c
===================================================================
--- trunk/geanygdb/src/ttyhelper.c 2009-05-07 19:28:40 UTC (rev 626)
+++ trunk/geanygdb/src/ttyhelper.c 2009-05-07 22:48:32 UTC (rev 627)
@@ -1,9 +1,25 @@
/*
- A little "shell" application to grab the tty name of a console..
- The tty name is written to the file specified in argv[1] of the
- command line. After that the program just runs in a loop that
- calls nanosleep() until some external force causes it to exit.
-*/
+ * Copyright 2008 Jeff Pohlmeyer <yetanothergeek(at)gmail(dot)com>
+ *
+ * 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.
+ *
+ * A little "shell" application to grab the tty name of a console..
+ * The tty name is written to the file specified in argv[1] of the
+ * command line. After that the program just runs in a loop that
+ * calls nanosleep() until some external force causes it to exit.
+ */
#include <stdio.h>
#include <time.h>
@@ -14,33 +30,43 @@
{
FILE *f;
char *tty = NULL;
+
if (argc != 2)
{
return 1;
}
+
if (!isatty(0))
{
return 1;
}
+
tty = ttyname(0);
+
if (!(tty && *tty))
{
return 1;
}
+
f = fopen(argv[1], "w");
+
if (!f)
{
return 1;
}
+
fprintf(f, "%s", tty);
+
if (fclose(f) != 0)
{
return 1;
}
+
while (1)
{
struct timespec req = { 1, 0 }, rem;
nanosleep(&req, &rem);
}
+
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 626
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=626&view=rev
Author: dmaphy
Date: 2009-05-07 19:28:40 +0000 (Thu, 07 May 2009)
Log Message:
-----------
update ChangeLog
Modified Paths:
--------------
trunk/geanygdb/ChangeLog
Modified: trunk/geanygdb/ChangeLog
===================================================================
--- trunk/geanygdb/ChangeLog 2009-05-07 19:21:25 UTC (rev 625)
+++ trunk/geanygdb/ChangeLog 2009-05-07 19:28:40 UTC (rev 626)
@@ -1,3 +1,7 @@
+2009-05-07 Dominic Hopf <dmaphy(a)googlemail.com>
+ * install ttyhelper and geanydebug.so to /usr/lib/geany/
+ patch by Chow Loong Jin, thanks!
+
2009-05-04 Dominic Hopf <dmaphy(a)googlemail.com>
* search for a globally installed tty helper in $PREFIX/$LIBDIR/geany/,
and fall back to the users config dir if not found. this fixes problems when
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.