Index: ChangeLog
from Benoît Perrot <benoit(a)lrde.epita.fr>
* src/shell.cc (readline): When the true readline is lacking, use
STL's getline instead of istream::operator>> to get a line instead
of a word.
Reported by Julien Vanegue.
2004-07-14 Benoît Perrot <benoit(a)lrde.epita.fr>
Index: src/shell/shell.cc
--- src/shell/shell.cc (revision 110)
+++ src/shell/shell.cc (working copy)
@@ -58,7 +58,7 @@
#else // !HAVE_READLINE_READLINE_H
std::cout << prompt;
- std::cin >> line;
+ getline(std::cin, line);
return !std::cin.eof();
#endif // HAVE_READLINE_READLINE_H
Index: ChangeLog
from Benoît Perrot <benoit(a)lrde.epita.fr>
* INSTALL: Explain --with-readline-{includes,library} usage.
Suggested by Marco Tessari.
Index: INSTALL
--- INSTALL (revision 109)
+++ INSTALL (working copy)
@@ -10,7 +10,8 @@
* GNU make
The interactive shell is more ergonomic when libreadline is installed
-on the system, but it is not mandatory to build Nolimips.
+on the system, but it is not mandatory to build Nolimips:
+ * libreadline
Extra development tools are needed to build a copy from Nolimips' repository:
@@ -36,11 +37,24 @@
--------------------
The following command will check your system configuration and prepare
-Nolimips for an installation in /usr/local. To specify another directory,
-use the --prefix option of configure (see ./configure --help):
+Nolimips for an installation in `/usr/local'. To specify another directory,
+use the `--prefix' option of configure (see ./configure --help):
$ ./configure
+By default, the configure script assumes that Nolimips must be built
+with readline. If the readline library or its include files cannot be
+found in standard path, the script will complain (but not fail, as if
+`--without-readline' was used). To precise the path to them, use the
+options `--with-readline-includes' and `--with-readline-library':
+
+ $ ./configure --with-readline-includes=/path/to/readline-includes \
+ --with-readline-library=/path/to/readline-library
+
+With `/path/to/readline-includes' containing a subdirectory named
+`readline/' containing the file `readline.h', and `/path/to/readline-library'
+containing the library `libreadline-XXX.a'.
+
Then build Nolimips:
$ make && make check
Spam detection software, running on the system "kualalumpur.lrde.epita.fr", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or block
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: military hutchinson ammo sc holocaust crave cutlet
slurry nut professional birdlike *Opt-in Em@il Specials for July 2004*
[...]
Content analysis details: (8.7 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 BAYES_44 BODY: Bayesian spam probability is 44 to 50%
[score: 0.4407]
0.1 HTML_FONTCOLOR_BLUE BODY: HTML font color is blue
0.2 HTML_TAG_BALANCE_A BODY: HTML has excess "a" close tags
0.1 HTML_MESSAGE BODY: HTML included in message
0.1 HTML_FONTCOLOR_UNSAFE BODY: HTML font color not in safe 6x6x6 palette
0.3 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
0.6 HTML_FONT_INVISIBLE BODY: HTML font color is same as background
0.1 HTML_FONTCOLOR_RED BODY: HTML font color is red
0.1 BIZ_TLD URI: Contains a URL in the BIZ top-level domain
0.7 RCVD_IN_DSBL RBL: Received via a relay in list.dsbl.org
[<http://dsbl.org/listing?ip=64.231.101.118>]
3.5 RCVD_IN_NJABL_DIALUP RBL: NJABL: dialup sender did non-local SMTP
[64.231.101.118 listed in dnsbl.njabl.org]
2.6 RCVD_IN_DYNABLOCK RBL: Sent directly from dynamic IP address
[64.231.101.118 listed in dnsbl.sorbs.net]
0.1 RCVD_IN_NJABL RBL: Received via a relay in dnsbl.njabl.org
[64.231.101.118 listed in dnsbl.njabl.org]
0.1 RCVD_IN_SORBS RBL: SORBS: sender is listed in SORBS
[64.231.101.118 listed in dnsbl.sorbs.net]
The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.
/tmp % prcs2svn.py -f -t debug -c --copy-svn --svn-root=file:///tmp --svn-project=$TO $WHAT |& tee log
> Copy prcs repository
os.system("prcs package -f lrde-maintain lrde-maintain.pkg")
os.system("prcs unpackage -f ./lrde-maintain.pkg")
prcs: Unpackage project `lrde-maintain'.
> Copy svn repository to /tmp/prcs2svnrDBvw-.svn
os.system("svnadmin hotcopy /tmp/lrde-admin.lrde /tmp/prcs2svnrDBvw-.svn/lrde-admin.lrde")
> Test date coherency of projects
> Create working directory: /tmp/prcs2svn_VYnUW.migrate
> Checkout subversion repository
os.system("svn checkout file:///tmp/prcs2svnrDBvw-.svn/lrde-admin.lrde "/tmp/prcs2svn_VYnUW.migrate"")
A /tmp/prcs2svn_VYnUW.migrate/trunk
A /tmp/prcs2svn_VYnUW.migrate/trunk/net
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/materiel_prete.txt
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/description.txt
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/dns_lrde.signed
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/prises_bocal
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/ChangeLog
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/architecture-réseau.tex
A /tmp/prcs2svn_VYnUW.migrate/trunk/net/README
A /tmp/prcs2svn_VYnUW.migrate/trunk/ChangeLog
A /tmp/prcs2svn_VYnUW.migrate/branches
A /tmp/prcs2svn_VYnUW.migrate/tags
Checked out revision 15.
> Create subversion repository tree
os.system("svn mkdir branches trunk tags")
svn: Try 'svn add' or 'svn add --non-recursive' instead?
svn: Can't create directory 'branches': File exists
Traceback (most recent call last):
File "/usr/local/bin/prcs2svn.py", line 1236, in ?
Main().main()
File "/usr/local/bin/prcs2svn.py", line 1059, in main
prcs2svn.convert()
File "/usr/local/bin/prcs2svn.py", line 813, in convert
self.convert_init()
File "/usr/local/bin/prcs2svn.py", line 803, in convert_init
self.svn.repository_init(self.topdir)
File "/usr/local/bin/prcs2svn.py", line 462, in repository_init
os.path.join(infos.subdir, "tags"), False)
File "/usr/local/bin/prcs2svn.py", line 100, in xsystem
assert(os.system(cmd) == 0)
AssertionError
Task #156 has been updated.
Project: LrdeTools
Subproject: prcs2svn
Summary: Writing documentation
Complete: 5%
Status: Open
Description: (no comments)
-------------------------------------------------------
For more info, visit:
http://gforge.lrde.epita.fr/pm/task.php?func=detailtask&project_task_id=156…
Task #155 has been updated.
Project: LrdeTools
Subproject: prcs2svn
Summary: tmp files
Complete: 0%
Status: Open
Description: From: Akim Demaille <akim(a)epita.fr>
Subject: prcs2svn: tmp files
Newsgroups: lrde.proj
Date: Mon, 12 Jul 2004 16:50:59 +0200
Organization: EPITA / LRDE http://www.lrde.epita.fr
Err... It would be nice if prcs2svn did clean its temp files.
By the way, I would suggest a complete change of temp dir scheme.
Instead of putting everybody directly in /tmp, I would create
/tmp/prcs2svn-PROJECT-XXXXX
and inside I would create
prcs/
migrate/
svn/
etc.
That would avoid the clutter, and would make cleaning easier (both
automatically, and by hand).
-------------------------------------------------------
For more info, visit:
http://gforge.lrde.epita.fr/pm/task.php?func=detailtask&project_task_id=155…