зеркало из https://github.com/mozilla/pjs.git
Fixed buildid not being properly updated in Calendar-About alert
This commit is contained in:
Родитель
a24205a2f5
Коммит
2112c76441
|
@ -49,11 +49,13 @@ foreach $file (@ARGV)
|
|||
print "Working on " . $file . "\n";
|
||||
|
||||
# look for XX_DATE_XX and replace with $buildid
|
||||
# look for gDateMade=* and replace * with $buildid
|
||||
open(IN, $file) or die "cannot open $file for read\n";
|
||||
open(OUT,">" . $file . "-temp") or die "cannot open " . $file . "-temp for write\n";
|
||||
while(<IN>)
|
||||
{
|
||||
$line = $_;
|
||||
$line =~ s/gDateMade =.+/gDateMade = "$buildid"/;
|
||||
$line =~ s/XX_DATE_XX/$buildid/;
|
||||
print OUT $line;
|
||||
}
|
||||
|
|
|
@ -77,8 +77,7 @@
|
|||
* G L O B A L V A R I A B L E S
|
||||
*/
|
||||
|
||||
//the next line needs XX-DATE-XY but last X instead of Y
|
||||
var gDateMade = 20020411;
|
||||
var gDateMade = "2002043018-cal"
|
||||
|
||||
// turn on debuging
|
||||
|
||||
|
@ -547,7 +546,7 @@ function getPreviewText( calendarEventDisplay )
|
|||
|
||||
function alertCalendarVersion()
|
||||
{
|
||||
alert( "This calendar was made on "+gDateMade+". Please include this in your bug report." );
|
||||
alert( "The build id for this calendar is "+gDateMade+". Please include this in your bug report." );
|
||||
}
|
||||
|
||||
function playSound( ThisURL )
|
||||
|
|
Загрузка…
Ссылка в новой задаче