http://wiki.amule.org/w/api.php?action=feedcontributions&user=124.106.142.149&feedformat=atomAMule Project FAQ - User contributions [en]2024-03-28T18:49:53ZUser contributionsMediaWiki 1.23.3http://wiki.amule.org/wiki/User:ColinUser:Colin2007-12-23T13:49:59Z<p>124.106.142.149: /* amuleCVSfx */</p>
<hr />
<div>Satisfied amule user since September 2004.<br />
----<br />
I am also known as '''ezeltje''' in the forum (''ezel'' means "mule" in Dutch, in case anyone is wondering).<br />
<br />
Things I have done there:<br />
<br />
* created the [[Events]] pages with the example script<br />
* reorganized [[AMuleWeb]] and rewrote the intro<br />
* expanded [[AMuleCMD]]<br />
* complained about the CVS flag, just to find out Kry can be a sarcastic condescending son of a bitch.<br />
<br />
and other smaller fixes elsewhere...<br />
<br />
---<br />
<br />
== amuleCVSfx ==<br />
<br />
Here is a simple script to remove the obligatory command-line parameter you need to use to run aMule CV. Run it in the ../amule-cvs directory. It will make a backup of the original file.<br />
<br />
<pre><br />
#!/bin/bash<br />
FileIn=src/amule.cpp<br />
FileOut=_^$$.tmp<br />
[ -e $FileOut ] && rm -f $FileOut<br />
awk < "$FileIn" > "$FileOut" ' <br />
Found < 1 && /.!cmdline\.Found/ {<br />
n = 4<br />
print "// ------ Commented out by amuleCVSfx ------"<br />
Found = 1<br />
}<br />
n > 0 {<br />
$0 = "// " $0<br />
n-- <br />
}<br />
{print}'<br />
mv -f $FileIn $FileIn~ 2>&1<br />
mv -f $FileOut $FileIn 2>&1<br />
# end<br />
<br />
</pre><br />
<br />
''(This does not comment out one #endif and one closing brace in Tue Dec 4 07:01:55 CET 2007 CVS snapshot, so compilation fails) .- Bishi''<br />
<br />
''(Change the line : "n = 4" to "n = 6". That should sort you out). - haylocki''<br />
<br />
You can view the changes using diff: <br />
<pre><br />
$ diff --side-by-side --suppress-common-lines src/amule.cpp src/amule.cpp~<br />
</pre></div>124.106.142.149