root/modules/branches/2.6/frameworksvn.pl

Revision 11512, 1.2 kB (checked in by p_lindheimer, 1 year ago)

Merged revisions 11511 via svnmerge from
http://www.freepbx.org/v2/svn/modules/branches/2.7

................

r11511 | p_lindheimer | 2011-02-20 16:02:59 -0800 (Sun, 20 Feb 2011) | 16 lines


Merged revisions 11510 via svnmerge from
http://www.freepbx.org/v2/svn/modules/branches/2.8


................

r11510 | p_lindheimer | 2011-02-20 16:00:39 -0800 (Sun, 20 Feb 2011) | 9 lines


Merged revisions 11509 via svnmerge from
http://www.freepbx.org/v2/svn/modules/branches/2.9


........

r11509 | p_lindheimer | 2011-02-20 15:59:27 -0800 (Sun, 20 Feb 2011) | 1 line


remove non numerics form version info in sed

........

................

................

  • Property svn:mime-type set to text/plain
  • Property svn_eol-style set to native
  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 #!/usr/bin/perl
2
3 # This script (sculpted from publish.pl) will check the last tarball (which must be there)
4 # based on the framework xml version number and then run svn log against all updates since
5 # framework was last published.
6 #
7 $rver = "2.6";
8 $fwbranch = "branches/2.6";
9 $framework = "framework";
10
11 $moddir = 'framework';
12
13 my $reldir = "release/";
14
15   open FH, "$moddir/module.xml";
16   $newxml = "";
17   $vers = "unset";
18   while (<FH>) {
19     if ($vers == 'unset' && /<version>(.+)<\/version>/) { $vers = $1; }
20     $newxml .= $_;
21   }
22   close FH;
23
24   die "Don't know version of $moddir" if ($vers eq "unset");
25   # Automatically check in any files that were modified but weren't checked into SVN
26
27   # Now we know the version. Get the svnversion.txt from the last update.
28   $filename = "../../$reldir"."$rver/$framework-$vers.tgz";
29   print "CHECKING VERSION: ..... ";
30   #print "CHECKING VERSION WITH: tar -zxOf $filename $moddir/svnversion.txt: ...  ";
31   system("tar -zxOf ".$filename." ".$moddir."/svnversion.txt");
32   print "Geting svn log since that version for $rver : .... \n\n";
33   $svnver = system("svn log http://svn.freepbx.org/freepbx/$fwbranch -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION:// | tr -cd '0-9'`:HEAD");
Note: See TracBrowser for help on using the browser.