Commit 39d2fdb0 authored by salaun's avatar salaun
Browse files

Print important changes extracted from RELEASE_NOTES (*****)


git-svn-id: https://subversion.renater.fr/sympa/trunk@510 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 8761d3cd
......@@ -163,7 +163,16 @@ clean:
$(MAKE) PERL='${PERL}' clean) || exit 1; \
done;
install: installsrc installnls installwws installman installscript installsample installdir installconfig
install: importantchanges installsrc installnls installwws installman installscript installsample installdir installconfig
importantchanges:
( PERL=$(PERL); export PERL; \
UMASK=0600; export UMASK; \
BINDIR=$(BINDIR); export BINDIR; \
SYMPA_VERSION=$(SYMPA_VERSION); export SYMPA_VERSION; \
$(PERL) ./important_changes.pl \
) ;\
installsrc:
(cd src && echo "making in src..." && \
......
## Print important changes in Sympa since last install
## It is based on the RELEASE_NOTES ***** entries
my ($first_install, $current_version, $previous_version);
$current_version = $ENV{'SYMPA_VERSION'};
unless ($current_version) {
print STDERR "Could not get current Sympa version\n";
exit -1;
}
## Get previous installed version of Sympa
unless (open VERSION, "$ENV{'BINDIR'}/Version.pm") {
print STDERR "Could not find previous install of Sympa ; asuming first install\n";
exit 0;
}
unless ($first_install) {
while (<VERSION>) {
if (/^\$Version = \'(\S+)\'\;/) {
$previous_version = $1;
last;
}
}
}
close VERSION;
print "You are upgrading from Sympa $previous_version\nYou should read CAREFULLY the changes listed below ; they might be uncompatible changes :\n<RETURN>";
my $wait = <STDIN>;
## Extracting Important changes from release notes
open NOTES, 'RELEASE_NOTES';
my ($current, $ok);
while (<NOTES>) {
if (/^$previous_version/) {
last;
}elsif (/^$current_version/) {
$ok = 1;
}
next unless $ok;
if (/^\*{4}/) {
print "\n" unless $current;
$current = 1;
print;
}else {
$current = 0;
}
}
close NOTES;
print "<RETURN>";
my $wait = <STDIN>;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment