root/modules/branches/2.7/fw_langpackssvn.pl

Revision 11511, 2.2 kB (checked in by p_lindheimer, 1 year ago)

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 fw_langpacks xml version number and then run svn log against all updates since
5 # fw_langpacks was last published.
6 #
7 $rver = "2.7";
8 $fwbranch = "branches/2.7";
9 $fw_langpacks = "fw_langpacks";
10
11 $moddir = 'fw_langpacks';
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/$fw_langpacks-$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 of language updates since that version for $rver : .... \n\n";
33   system("svn log http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs/recordings/locale -v -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION:// | tr -cd '0-9'`:HEAD | grep 'htdocs/recordings/locale'");
34   system("svn log http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs/admin -v -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION:// | tr -cd '0-9'`:HEAD | grep 'i18n/' | grep 'htdocs/admin'");
35   system("svn log http://svn.freepbx.org/modules/branches/$rver -v -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION:// | tr -cd '0-9'`:HEAD | grep 'i18n/' | grep 'modules/branches'");
36
37
38   # Test calls
39   # system("svn log http://svn.freepbx.org/freepbx/branches/$rver/amp_conf/htdocs/recordings/locale -v -r 4000:HEAD | grep 'htdocs/recordings/locale'");
40   # system("svn log http://svn.freepbx.org/freepbx/branches/$rver/amp_conf/htdocs/admin -v -r 4000:HEAD | grep 'i18n/' | grep 'htdocs/admin'");
41   # system("svn log http://svn.freepbx.org/modules/branches/$rver -v -r 4000:HEAD | grep 'i18n/' | grep 'modules/branches'");
Note: See TracBrowser for help on using the browser.