bitbucket-20: adding conditions for enclosing class/package (transplanting from trunk).
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5 # Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
7 # The contents of this file are subject to the terms of either the GNU
8 # General Public License Version 2 only ("GPL") or the Common
9 # Development and Distribution License("CDDL") (collectively, the
10 # "License"). You may not use this file except in compliance with the
11 # License. You can obtain a copy of the License at
12 # http://www.netbeans.org/cddl-gplv2.html
13 # or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
14 # specific language governing permissions and limitations under the
15 # License. When distributing the software, include this License Header
16 # Notice in each file and include the License file at
17 # nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
18 # particular file as subject to the "Classpath" exception as provided
19 # by Sun in the GPL Version 2 section of the License file that
20 # accompanied this code. If applicable, add the following below the
21 # License Header, with the fields enclosed by brackets [] replaced by
22 # your own identifying information:
23 # "Portions Copyrighted [year] [name of copyright owner]"
27 # The Original Software is the DocSup module.
28 # The Initial Developer of the Original Software is Jan Lahoda.
29 # Portions created by Jan Lahoda_ are Copyright (C) 2002,2003.
30 # All Rights Reserved.
32 # If you wish your version of this file to be governed by only the CDDL
33 # or only the GPL Version 2, indicate your decision by adding
34 # "[Contributor] elects to include this software in this distribution
35 # under the [CDDL or GPL Version 2] license." If you do not indicate a
36 # single choice of license, a recipient has the option to distribute
37 # your version of this file under either the CDDL, the GPL Version 2 or
38 # to extend the choice of license to its licensees as provided above.
39 # However, if you add GPL Version 2 code and therefore, elected the GPL
40 # Version 2 license, then the option applies only if the new code is
41 # made subject to such option by the copyright holder.
43 # Contributor(s): Jan Lahoda.
46 for manifest in `find . -type f -name "manifest.mf"`; do
47 mv $manifest $manifest.old
48 sed -e "s/OpenIDE-Module-Specification-Version: .*$/OpenIDE-Module-Specification-Version: $NEW_VERSION/" <$manifest.old >$manifest
51 for properties in `find . -type f -name "project.properties"`; do
52 mv $properties $properties.old
53 sed -e "s/spec.version.base=.*$/spec.version.base=$NEW_VERSION.0/" <$properties.old >$properties
56 mv kit/nbproject/project.xml kit/nbproject/project.xml.old
57 sed -e "s/<specification-version>.*<\/specification-version>/<specification-version>$NEW_VERSION<\/specification-version>/" <kit/nbproject/project.xml.old >kit/nbproject/project.xml