#!/usr/bin/perl # This script (sculpted from publish.pl) will check the last tarball (which must be there) # based on the fw_fop xml version number and then run svn log against all updates since # fw_fop was last published. # $rver = "2.9"; $fwbranch = "branches/2.9"; $fw_fop = "fw_fop"; $moddir = 'fw_fop'; my $reldir = "release/"; open FH, "$moddir/module.xml"; $newxml = ""; $vers = "unset"; while () { if ($vers == 'unset' && /(.+)<\/version>/) { $vers = $1; } $newxml .= $_; } close FH; die "Don't know version of $moddir" if ($vers eq "unset"); # Automatically check in any files that were modified but weren't checked into SVN # Now we know the version. Get the svnversion.txt from the last update. $filename = "../../$reldir"."$rver/$fw_fop-$vers.tgz"; print "CHECKING VERSION: ..... "; #print "CHECKING VERSION WITH: tar -zxOf $filename $moddir/svnversion.txt: ... "; system("tar -zxOf ".$filename." ".$moddir."/svnversion.txt"); print "Geting svn log since that version for $rver : .... \n\n"; $svnver = system("svn log http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs_panel -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION:// | tr -cd '0-9'`:HEAD"); $svnver = system("svn log http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/bin/retrieve_op_conf_from_mysql.php -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION:// | tr -cd '0-9'`:HEAD");