Hi, Am Samstag, 28. Juli 2007 17:41 schrieb Michael Riepe: > Hi *, > > I added an improved (albeit much simpler) version of Ralph's > "setversion" script today Simpler? It will take me a few hours to understand what happens in those 2 lines with getids/sed... ;-)
20 lines of my script replaced by 2 of yours... impressive! :-) But if simpler means shorter, you are right... ;-) > (Ralph: I added a copyright line with our > names in it and a reference to the GPL; hope you don't mind). Not at all... > > The script is already integrated with the scons build system Aha,... after that sed-magic you now want to become also a SCons-wizard! :) > and the > Windows makefile (although I'm not sure if the latter works correctly), I'll test it... > so the next time you compile dvbcut, src/version.h should be generated > automatically. The resulting binary should display "dvbcut 0.5.4-svn/60" > in the titlebar. For non-SVN builds, "-svn" will change to "-release". > This is triggered by the presence/absence of the top-level ".svn" > subdirectory. Perfect!!! BTW,.. funny coincidence... just had a look at the "latest&greatest" FFMPEG repository and noticed that there's also a version.sh. They get the revision number from the file ".svn/entries". That way there would be actually no need for the loop over the source files,.... at least if one does not want to know the revision number from a tarball/release! ciao Ralph ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ DVBCUT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dvbcut-user
