aMule Forum

English => Feature requests => Topic started by: skolnick on January 03, 2005, 12:34:08 AM

Title: adding date to CVS
Post by: skolnick on January 03, 2005, 12:34:08 AM
Hi all!

It would be really cool (at least for me) if CVS versions instead of being just version "CVS" would be something like "CVS 01-02-2005" that way, I could know which of all the CVS tarballs I have compiled is the one I'm running :D

Thanks for any attention payed to this thread.

Skolnick.
Title: RE: adding date to CVS
Post by: bootstrap on January 03, 2005, 12:52:37 AM
Hi skolnick!

The script that generates the cvs tarballs always adds a file called CVSDATE to the tarball. I don't think it is being used by now, but maybe that helps.

regards

bootstrap
Title: Re: adding date to CVS
Post by: skolnick on January 03, 2005, 03:43:00 AM
Hi!

Yes, I noticed the CVSDATE file. Very useful, but how do I know which cvs version is the one I am running right now?

Code: [Select]
[autizt@neptune ~]$ amule --version
Initialising aMule
aMule CVS using wxGTK2 v2.5.3 (Unicoded)
[autizt@neptune ~]$

This is all I get, I have no idea which CVS version was the one i last installed. Besides re-compiling, and comparing filesizes, how can I know the CVS date of my compiled amule?

Thanks.
Title: Re: adding date to CVS
Post by: darklegion on January 20, 2005, 04:59:27 AM
I second this,since I am always using cvs versions and sometimes you can get mixed up with which version is currently installed.
Title: Re: adding date to CVS
Post by: deltaHF on January 20, 2005, 12:13:16 PM
right now you could run it always from the src dir via ./amule and it will not get mixed up at all ;)

but yes, we need some date anyway
Title: Re: adding date to CVS
Post by: lfroen on January 20, 2005, 12:25:30 PM
bootstrap : can you show me the script, and I will try my best to make it work ?
Title: Re: adding date to CVS
Post by: Xaignar on January 20, 2005, 12:32:52 PM
Working on it. ;)
Title: Re: adding date to CVS
Post by: Xaignar on January 20, 2005, 12:46:51 PM
And done. :D
Title: Re: adding date to CVS
Post by: skolnick on January 21, 2005, 03:26:27 AM
Quote
Originally posted by Xaignar
And done. :D

I downloaded amule CVS from 2005-01-20 and still shiows its version as CVS only. Or wasn't this what was done? :P

Regards.
Title: Re: adding date to CVS
Post by: Xaignar on January 21, 2005, 07:16:40 AM
Well, since the snapshots are taken once a day, you should probably try the one from today ... except that it seems that I've broke it. :P
DownloadListCtrl.cpp:1929:  if ( ShowItemInCurrentCat( file, curTab ) {
change to:
DownloadListCtrl.cpp:1929:    if ( ShowItemInCurrentCat( file, curTab ) ) {

Anyway ... when actually compiled:
 $ src/amule --version
Initialising aMule
aMule CVS using wxGTK1 v2.4.2 (Snapshot: Fri Jan 21 07:01:04 CET 2005)
Title: Re: adding date to CVS
Post by: skolnick on January 25, 2005, 12:43:35 AM
Hi!

Nice, I like it...could it be added to the "version" string in aMule?, so my signature looks like this:

aMule CVS 2005-01-24 has been running for 10:32 h
...

instead of this:

aMule CVS has been running for 10:32 h
...

Also, would be nice if the folder inside the .tar.bz2 file was amule-cvs-yyyy-mm-dd instead of only amule-cvs. I have overwritten my old folder many times when uncompressing :(

Thanks!

P.S: Sorry to bother so much with this...but I would really like to see this implemented, and I do not know enough C++ to do it by myself.
Title: Re: adding date to CVS
Post by: ken on January 25, 2005, 09:19:48 AM
I will look into adding this after 2.0.0final is released.  Sadly, people will probably be a lot less interested in running CVS snapshots then. :P
Title: Re: adding date to CVS
Post by: volpol on January 27, 2005, 01:19:44 AM
@skolnick
to avoid overwriting amule-cvs directory you could use a script for the time being.
i am using this script to extract amule-cvs snapshots. i hope you will find it useful as well.
Code: [Select]
name=`basename $1 .tar.bz2 | sed s/M/m/`
mkdir $name
tar --strip-path=1 -C $name -xjvf $1
for example it would extract the content of aMule-cvs-20050124.tar.bz2 into amule-cvs-20050124 in the currect directory.
Title: Re: adding date to CVS
Post by: skolnick on May 01, 2006, 07:50:02 PM
Thanks a lot for the script ( I know, it's been a while since you posted it, it has always been useful.) I just wanted to point that recent versions of "tar" changed the commandline, so the script should be changed this way:

Code: [Select]
name=`basename $1 .tar.bz2 | sed s/M/m/`
mkdir $name
tar --strip-components=1 -C $name -xjvf $1

Thanks a lot for this!!