[Kstars-devel] Re: new tarball release policy?
Carsten Niehaus
cniehaus at gmx.de
Wed Jun 22 19:08:59 CEST 2005
Am Mittwoch, 22. Juni 2005 19:02 schrieben Sie:
> I would set up a cron
> job to use Carsten's script to make a new snapshot and upload it to my
> webserver every week.
Yes, I have a comment for this :-)
Most snapshot users will probably use the buildin bugreport tool which will
use the internal versionnumber of KStars, I guess.
To be able to track bugs more efficiently you should add this to your script:
Dir.chdir( "kstars" )
file = File.new( "main.cpp", File::RDWR )
str = file.read()
file.rewind()
str.sub!( /KSTARS_VERSION \".*\"/, "KSTARS_VERSION \"#{version}\"" )
file << str
file.close(
Dir.chdir( ".." )
This script exchanges the KSTARS_VERSION with the version the script is using.
If you now start the script with a version which somehow encoded the date
(25aug2005-preview or similar) you will automagically (without changing
anything in KStars itself) have a date of the version the bugreporting user
used.
Good idea?
Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20050622/df9eb208/attachment.pgp
More information about the Kstars-devel
mailing list