releasing/cbrtools/perl/ViewNotes
author jascui
Wed, 17 Nov 2010 13:27:16 +0800
changeset 686 3e502c8c584c
parent 602 3145852acc89
permissions -rw-r--r--
Update release information and product version.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     1
#!perl
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     2
# Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     3
# All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     4
# This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     6
# which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     8
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     9
# Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    11
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    12
# Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    13
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    14
# Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    15
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    16
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    17
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    18
use strict;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    19
use FindBin;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    20
use lib "$FindBin::Bin";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    21
use Getopt::Long;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    22
use IniData;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    23
use RelData;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    24
use EnvDb;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    25
use NotesCompiler;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    26
use CommandController;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    27
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    28
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    29
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    30
# Globals.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    31
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    32
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    33
my $verbose = 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    34
my $iniData = IniData->New();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    35
my $commandController = CommandController->New($iniData, 'ViewNotes');
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    36
my $comp1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    37
my $ver1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    38
my $comp2;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    39
my $ver2;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    40
my $compSummary;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    41
my $envSummary;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    42
my $diffEnvSummary;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    43
my $projectFilter;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    44
my $numberFilter;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    45
my $outputLocation;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    46
my $outputSTDOUTonly;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    47
my $htmlNotes="";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    48
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    49
# Main.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    50
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    51
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    52
ProcessCommandLine();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    53
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    54
if ($htmlNotes eq "") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    55
  # User didn't specify --html or --nohtml
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    56
  $htmlNotes = $iniData->HtmlNotes();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    57
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    58
my $notesCompiler = NotesCompiler->New($iniData, $comp1, $ver1, $verbose, $outputLocation, $outputSTDOUTonly, $htmlNotes);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    59
$notesCompiler->SetProjectFilter($projectFilter);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    60
$notesCompiler->SetVersionNumberFilter($numberFilter);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    61
if ($compSummary) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    62
  if ($outputSTDOUTonly) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    63
    die "Error: Cannot use -s with -t\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    64
    Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    65
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    66
  $notesCompiler->DoCompSummary();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    67
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    68
elsif ($envSummary or (not $comp1 and not $ver1)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    69
  if ($outputSTDOUTonly && $envSummary) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    70
    die "Error: Cannot use -e with -t\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    71
    Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    72
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    73
  elsif ($outputSTDOUTonly and (not $comp1 and not $ver1)){
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    74
    die "Error: When using the -t flag, either <component> or <version> (or both) must be specified\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    75
    Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    76
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    77
  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    78
  $notesCompiler->DoEnvSummary();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    79
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    80
elsif ($diffEnvSummary) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    81
  $notesCompiler->DoDiffEnvSummary($comp2, $ver2);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    82
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    83
else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    84
  $notesCompiler->DoStandardNotes();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    85
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    86
if ($outputLocation) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    87
  print "LAUNCH LOCATION: ".$notesCompiler->HtmlMainFile();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    88
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    89
elsif (!$outputSTDOUTonly){
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    90
  system "start ".$notesCompiler->HtmlFileName();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    91
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    92
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    93
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    94
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    95
# Subs.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    96
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    97
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    98
sub ProcessCommandLine {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    99
  Getopt::Long::Configure ("bundling");
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   100
  my $help;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   101
  GetOptions('h' => \$help, 'e' => \$envSummary, 's' => \$compSummary, 'v+' => \$verbose, 'd' => \$diffEnvSummary, 'p=s' => \$projectFilter, 'n=s' => \$numberFilter, 'o=s' => \$outputLocation, 't' => \$outputSTDOUTonly, 'html!' => \$htmlNotes);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   102
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   103
  if ($help) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   104
    Usage(0);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   105
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   106
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   107
  $comp1 = shift @ARGV;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   108
  $ver1 = shift @ARGV;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   109
  $comp2 = shift @ARGV;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   110
  $ver2 = shift @ARGV;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   111
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   112
  if (@ARGV) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   113
    print "Error: Invalid arguments\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   114
    Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   115
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   116
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   117
  if (defined ($compSummary) + defined ($envSummary) + defined ($diffEnvSummary) > 1) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   118
    print "Error: Incompatible options\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   119
    Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   120
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   121
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   122
  if ($projectFilter || $numberFilter) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   123
    unless ($compSummary || $diffEnvSummary || $envSummary) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   124
      print "Error: the -p and -n filters don't make sense if you're just viewing the notes for one release\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   125
      Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   126
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   127
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   128
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   129
  if ($compSummary) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   130
    unless ($comp1) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   131
      print "Error: A component must be specified when using the -s option\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   132
      Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   133
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   134
    if ($ver1) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   135
      print "Error: Too many arguments\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   136
      Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   137
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   138
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   139
  elsif ($diffEnvSummary) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   140
    if ($comp2 && !$ver2) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   141
      print "Error: You must specify a version number for each component\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   142
      Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   143
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   144
    unless ($comp1 && $ver1) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   145
      print "Error: You must specify a component and version to difference against\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   146
      Usage(1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   147
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   148
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   149
  elsif ($comp1 and not $ver1) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   150
    SetVersionToCurrent();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   151
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   152
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   153
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   154
sub Usage {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   155
  my $exitCode = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   156
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   157
  Utils::PrintDeathMessage($exitCode, "
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   158
Usage: viewnotes [options] [[-t] <component> [<version>]]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   159
       viewnotes [options] -s <component>
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   160
       viewnotes [options] -e [<component> [<version>]]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   161
       viewnotes [options] -d [-t] <component> <version> [<component> <version>]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   162
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   163
options:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   164
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   165
-h  help
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   166
-s  display a summary all releases made to date for a specified component
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   167
-e  display a summary of all the releases in the specified environment
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   168
-d  display a report of all the changes between two environments
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   169
-v  verbose output (-vv very verbose)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   170
-t  output HTML directly to STDOUT, without generating a file
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   171
-p <project> only display notes for releases in this project
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   172
-n <version Number> only display notes for releases whose number matches this
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   173
--html   Display notes made using tools v2.83.1013 and earlier as html
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   174
--nohtml Display notes made using tools v2.83.1013 and earlier as plain text
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   175
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   176
The --html and --nohtml options override the html_notes setting in reltools.ini\n");
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   177
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   178
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   179
sub SetVersionToCurrent {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   180
  my $envDb = EnvDb->Open($iniData);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   181
  $ver1 = $envDb->Version($comp1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   182
  unless (defined $ver1) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   183
    die "Error: $comp1 not installed in current environment\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   184
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   185
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   186
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   187
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   188
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   189
=head1 NAME
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   190
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   191
ViewNotes - View the release notes of a component release.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   192
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   193
=head1 SYNOPSIS
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   194
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   195
       viewnotes [options] [[-t] <component> [<version>]]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   196
       viewnotes [options] -s <component>
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   197
       viewnotes [options] -e [<component> [<version>]]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   198
       viewnotes [options] -d [-t] <component> <version> [<component> <version>]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   199
       
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   200
options:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   201
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   202
  -h  help
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   203
  -s  display a summary all releases made to date for a specified component
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   204
  -e  display a summary of all the releases in the specified environment
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   205
  -d  display a report of all the changes between two environments
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   206
  -v  verbose output (-vv very verbose)
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   207
  -t  output HTML directly to STDOUT, without generating a file
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   208
  -p <project> only display notes for releases in this project
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   209
  -n <version Number> only display notes for releases whose number matches this
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   210
  --html   Display notes made using tools v2.83.1013 and earlier as html
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   211
  --nohtml Display notes made using tools v2.83.1013 and earlier as plain text
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   212
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   213
=head1 DESCRIPTION
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   214
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   215
Launches a web browser to view the HTML release notes of the requested component release. Without C<-s>, C<-e> or C<-d>, it displays the notes for a single component version. If the version is specified, the notes for that component version are displayed. If the version is not specified, the notes for the currently installed component version are displayed. If the version is not specified and the component is currently C<pending release>, the notes for the component are displayed for previewing. 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   216
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   217
The C<-s> switch may be used to display a summary of all releases made to date (most recent first). The C<-e> switch displays notes for all the components in the specified environment (or your current environment, if you don't specify one).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   218
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   219
The C<-d> switch produces a single page which shows the release notes for all components which have changed between two environments. This page contains the release notes for each changed release, including any intervening releases which may exist on your release archive.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   220
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   221
The C<-s>, C<-e> and C<-d> switches all produce information for several releases. In all cases, but especially with C<-d>, you may not want information produced for every release. You can therefore use C<-p> and C<-n> to filter the releases for which you want to see the notes. The C<-n> switch can take a regular expression, so that you can (for example) show only releases starting with a certain phrase.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   222
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   223
The C<-t> switch will not create a file, but instead, will output the HTML to STDOUT. The output to STDOUT is useful for viewnotes to be built into other scripts and provides more flexibility in viewing release notes.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   224
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   225
The C<--html> and C<--nohtml> switches override the setting of the html_notes keyword in your reltools.ini file.  This setting controls how the text in release notes made using tools version 2.83.1013 and earlier is displayed in a web browser - either as html (allowing tags to be used) or as plain text.  Note that release notes used with newer versions of tools use the <html/> element to specify whether the text is html or not at time of writing, so this setting is ignored with those releases.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   226
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   227
(Note: there is also a C<--dummy> switch, which prompts the page to be generated but not displayed in a web browser. This is intended for the use of test scripts).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   228
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   229
=head1 KNOWN BUGS
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   230
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   231
None.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   232
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   233
=head1 COPYRIGHT
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   234
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   235
 Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   236
 All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   237
 This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   238
 under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   239
 which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   240
 at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   241
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   242
 Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   243
 Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   244
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   245
 Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   246
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   247
 Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   248
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   249
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   250
=cut