aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: adding date to CVS  (Read 6986 times)

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
adding date to CVS
« 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.
Logged

bootstrap

  • Guest
RE: adding date to CVS
« Reply #1 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
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: adding date to CVS
« Reply #2 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.
Logged

darklegion

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
Re: adding date to CVS
« Reply #3 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.
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: adding date to CVS
« Reply #4 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

lfroen

  • Guest
Re: adding date to CVS
« Reply #5 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 ?
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: adding date to CVS
« Reply #6 on: January 20, 2005, 12:32:52 PM »

Working on it. ;)
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: adding date to CVS
« Reply #7 on: January 20, 2005, 12:46:51 PM »

And done. :D
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: adding date to CVS
« Reply #8 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.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: adding date to CVS
« Reply #9 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)
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: adding date to CVS
« Reply #10 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.
« Last Edit: January 25, 2005, 12:44:26 AM by skolnick »
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: adding date to CVS
« Reply #11 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
Logged

volpol

  • Evil KDE Hater
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: adding date to CVS
« Reply #12 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.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: adding date to CVS
« Reply #13 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!!
Logged