|
Revision 6498, 1.2 kB
(checked in by p_lindheimer, 4 years ago)
|
tweak publish script and add fw_arisvn.pl and fw_fopsvn.pl
|
- 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_ari xml version number and then run svn log against all updates since |
|---|
| 5 |
# fw_ari was last published. |
|---|
| 6 |
# |
|---|
| 7 |
$rver = "2.5"; |
|---|
| 8 |
$fw_ari = "fw_ari"; |
|---|
| 9 |
|
|---|
| 10 |
$moddir = 'fw_ari'; |
|---|
| 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/$fw_ari-$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/amp_conf/htdocs/recordings -r `tar -zxOf ".$filename." ".$moddir."/svnversion.txt | sed -e s/SVN\\\ VERSION://`:HEAD"); |
|---|