root/modules/branches/2.5/frameworksvn.pl

Revision 6493, 1.2 kB (checked in by p_lindheimer, 5 years ago)

closes #3119 changes to build scripts and fw_fop and fw_ari split out

  • 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.5";
8 $framework = "framework";
9
10 $moddir = 'framework';
11
12 my $reldir = "release/";
13
14   open FH, "$moddir/module.xml";
15   $newxml = "";
16   $vers = "unset";
17   while (<FH>) {
18     if ($vers == 'unset' && /<version>(.+)<\/version>/) { $vers = $1; }
19     $newxml .= $_;
20   }
21   close FH;
22
23   die "Don't know version of $moddir" if ($vers eq "unset");
24   # Automatically check in any files that were modified but weren't checked into SVN
25
26   # Now we know the version. Get the svnversion.txt from the last update.
27   $filename = "../../$reldir"."$rver/$framework-$vers.tgz";
28   print "CHECKING VERSION: ..... ";
29   #print "CHECKING VERSION WITH: tar -zxOf $filename $moddir/svnversion.txt: ...  ";
30   system("tar -zxOf ".$filename." ".$moddir."/svnversion.txt");
31   print "Geting svn log since that version for $rver : .... \n\n";
32   $svnver = system("svn log http://svn.freepbx.org/freepbx/branches/$rver -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION://`:HEAD");
33
Note: See TracBrowser for help on using the browser.