2 eval 'exec perl -wS $0 ${1+"$@"}'
5 #*************************************************************************
6 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 # Copyright 2000, 2010 Oracle and/or its affiliates.
10 # OpenOffice.org - a multi-platform office productivity suite
12 # This file is part of OpenOffice.org.
14 # OpenOffice.org is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU Lesser General Public License version 3
16 # only, as published by the Free Software Foundation.
18 # OpenOffice.org is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU Lesser General Public License version 3 for more details
22 # (a copy is included in the LICENSE file that accompanied this code).
24 # You should have received a copy of the GNU Lesser General Public License
25 # version 3 along with OpenOffice.org. If not, see
26 # <http://www.openoffice.org/license.html>
27 # for a copy of the LGPLv3 License.
29 #***********************************************************************/
37 if ( !defined($ENV{SOLARENV
}) ) {
38 die "No environment found (environment variable SOLARENV is undefined)";
40 push(@lib_dirs, "$ENV{SOLARENV}/bin/modules");
48 sub getCwsWorkStamp
();
50 my $workstamp = $ENV{'WORK_STAMP'};
51 my $solenv= $ENV{'SOLARENV'};
52 my $cwsWorkStamp = getCwsWorkStamp
();
53 my $minor = getMinor
($cwsWorkStamp);
55 my $oldWorkStamp = $workstamp."_".$minor;
56 my $svndiff="svn diff --summarize --old=svn://svn.services.openoffice.org/ooo/tags/".$oldWorkStamp." --new=svn://svn.services.openoffice.org/ooo/cws/".$cwsWorkStamp;
58 my @diff = `$svndiff`;
63 if (/.*svn:\/\
/svn.services.openoffice.org.*/)
65 $_ =~ /.*$oldWorkStamp\/(\w
*)/;
67 if (defined($newModule))
69 if ( ! grep(/$newModule/,@modules))
71 push(@modules, $newModule);
90 if ( ! defined($ENV{'UPDMINOR'}))
94 $cws->master($ENV{'WORK_STAMP'});
95 my $masterws = $cws->master();
96 my $childws = $cws->child();
98 # check if we got a valid child workspace
99 my $id = $cws->eis_id();
102 print("Child workspace '$childws' for master workspace '$masterws' not found in EIS database.\n");
106 my @milestones = $cws->milestone();
107 foreach (@milestones) {
116 $min = $ENV{'UPDMINOR'};
123 sub getCwsWorkStamp
()
127 if ( ! defined($ENV{'CWS_WORK_STAMP'}))
131 chdir($ENV{'SOLARENV'});
133 my @info = `svn info`;
139 # URL: svn+ssh://svn@svn.services.openoffice.org/ooo/cws/qadev37/solenv
140 $_ =
~ /.*svn.services.openoffice.org(.*\/(.*))\
/\w*/;
141 $cwsWorkSt=$2; #qadev37
148 $cwsWorkSt = $ENV{'CWS_WORK_STAMP'};