Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2018-08-17 04:39:26 -0400
committerHenrik Rentz-Reichert2018-08-31 06:20:51 -0400
commit4176da47b063d5e93bd0d9c149391dde97966263 (patch)
treed39abf5861904e40979fd96a352e797c5801fcc1 /releng
parent99a2c70b13dc3713b7e63c1e1b15ce1e46085815 (diff)
downloadorg.eclipse.etrice-4176da47b063d5e93bd0d9c149391dde97966263.tar.gz
org.eclipse.etrice-4176da47b063d5e93bd0d9c149391dde97966263.tar.xz
org.eclipse.etrice-4176da47b063d5e93bd0d9c149391dde97966263.zip
bug 538027 - switching from EPL-1.0 to EPL-2.0
* applied the changelicToEPL2.0.sh script * manually added license.hmlt to features * poms with license block * adjusted a unit test because of a line number change Change-Id: I4f781e5211dfcf6cbae761234aee9daeb53d639f
Diffstat (limited to 'releng')
-rw-r--r--releng/org.eclipse.etrice.parent/pom.xml11
-rw-r--r--releng/org.eclipse.etrice.releng/scripts/changelicToEPL2.0.sh93
-rw-r--r--releng/org.eclipse.etrice.site/about.html4
-rw-r--r--releng/org.eclipse.etrice.site/build.properties6
-rw-r--r--releng/org.eclipse.etrice.site/pom.xml11
5 files changed, 121 insertions, 4 deletions
diff --git a/releng/org.eclipse.etrice.parent/pom.xml b/releng/org.eclipse.etrice.parent/pom.xml
index 42e9b1ec1..105bd74ec 100644
--- a/releng/org.eclipse.etrice.parent/pom.xml
+++ b/releng/org.eclipse.etrice.parent/pom.xml
@@ -1,4 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright (C) 2018, protos software gmbh (http://www.protos.de).
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License 2.0
+ which accompanies this distribution, and is available at
+ https://www.eclipse.org/legal/epl-2.0/
+
+ SPDX-License-Identifier: EPL-2.0
+-->
+
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
diff --git a/releng/org.eclipse.etrice.releng/scripts/changelicToEPL2.0.sh b/releng/org.eclipse.etrice.releng/scripts/changelicToEPL2.0.sh
new file mode 100644
index 000000000..ddafad4fc
--- /dev/null
+++ b/releng/org.eclipse.etrice.releng/scripts/changelicToEPL2.0.sh
@@ -0,0 +1,93 @@
+#!/bin/bash
+# Copyright (c) 2018 - Compex Systemhaus GmbH (69115 Heidelberg, Germany)
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License 2.0 which is available at
+# http://www.eclipse.org/legal/epl-2.0.
+#
+# SPDX-License-Identifier: EPL-2.0
+#
+# Contributors:
+# Ralf Mollik, Compex Systemhaus GmbH - initial contribution
+# Henrik Rentz-Reichert for eTrice
+#
+# Migrate a project from EPL 1.0 to EPL 2.0
+# This script worked fine on eTrice
+#
+
+#git pull
+
+for f in `find . -name "*.java" -or -name "pom.xml" -or -name "plugin.xml" -or -name "*.xtext" -or -name "*.xtend" -or -name "*.xcore" -or -name "*.mwe2" -or -name "*.properties" -or -name "manifest.mf"`
+do
+ if [ ! -f $f ]
+ then
+ continue
+ fi
+ echo .
+ echo update $f
+ sed -b -i 's/Eclipse Public License v1.0/Eclipse Public License 2.0/g' $f
+ sed -b -i -E '1,40s/(<!--)([[:blank:]]*[^[:blank:]])*([[:blank:]]*)http:\/\/www.eclipse.org\/legal\/epl-v10.html(.*)/\1\2\3https:\/\/www.eclipse.org\/legal\/epl-2.0\/ \4\
+\1\2\3 \4\
+\1\2\3SPDX-License-Identifier: EPL-2.0 \4/' $f
+ sed -b -i -E '1,40s/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)http:\/\/www.eclipse.org\/legal\/epl-v10.html(.*)/\1\2https:\/\/www.eclipse.org\/legal\/epl-2.0\/\3\
+\1\3\
+\1\2SPDX-License-Identifier: EPL-2.0\3/' $f
+done
+
+for f in `find . -name "epl-v10.html"`
+do
+ echo .
+ rm $f
+ newname=${f/epl-v10.html/}epl-2.0.html
+ echo update $f to $newname
+ curl https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html -o $newname
+
+ buildprops=${f/epl-v10.html/}build.properties
+ if [ -e $buildprops ]
+ then
+ sed -b -i 's/epl-v10.html/epl-2.0.html/g' $buildprops
+ fi
+ pom=${f/epl-v10.html/}pom.xml
+ if [ -e $pom ]
+ then
+ sed -b -i 's/epl-v10.html/epl-2.0.html/g' $pom
+ fi
+done
+
+for f in `find . -name "LICENSE.txt"`
+do
+ echo .
+ echo update $f
+ curl https://www.eclipse.org/legal/epl/notice.txt -o $f
+done
+
+for f in `find . -name "license.html" -or -name "notice.html"`
+do
+ echo .
+ echo update $f
+ curl https://www.eclipse.org/legal/epl/notice.html -o $f
+done
+
+
+for f in `find . -name "about.html"`
+do
+ echo .
+ echo update $f
+ sed -b -i 's/June 5, 2006/August 17, 2018/g' $f
+ sed -b -i 's/http:\/\/www.eclipse.org\/legal\/epl-v10.html/https:\/\/www.eclipse.org\/legal\/epl-2.0/g' $f
+ sed -b -i 's/Eclipse Public License Version 1.0/Eclipse Public License Version 2.0/g' $f
+done
+
+for f in `find . -name "feature.properties"`
+do
+ echo .
+ echo update $f
+ grep -a -B 100000 "# \"license\" property - text of the \"Feature Update License\"" $f | grep -a -v "# \"license\" property - text of the \"Feature Update License\"" >$f.new
+ curl https://www.eclipse.org/legal/epl/feature.properties.txt >>$f.new
+ cp $f.new $f
+ rm $f.new
+done
+
+
+
+
diff --git a/releng/org.eclipse.etrice.site/about.html b/releng/org.eclipse.etrice.site/about.html
index d35d5aed6..8670a3da6 100644
--- a/releng/org.eclipse.etrice.site/about.html
+++ b/releng/org.eclipse.etrice.site/about.html
@@ -13,8 +13,8 @@
<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+Eclipse Public License Version 2.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-2.0</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
diff --git a/releng/org.eclipse.etrice.site/build.properties b/releng/org.eclipse.etrice.site/build.properties
index 5b5e97089..d7302ecc5 100644
--- a/releng/org.eclipse.etrice.site/build.properties
+++ b/releng/org.eclipse.etrice.site/build.properties
@@ -1,8 +1,10 @@
# Copyright (c) 2010 - 2011 Protos Software GmbH.
# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
+# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
+# https://www.eclipse.org/legal/epl-2.0/
+#
+# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Thomas Schuetz and Henrik Rentz-Reichert - initial API and implementation
diff --git a/releng/org.eclipse.etrice.site/pom.xml b/releng/org.eclipse.etrice.site/pom.xml
index 2de71c8f3..93b32e8c8 100644
--- a/releng/org.eclipse.etrice.site/pom.xml
+++ b/releng/org.eclipse.etrice.site/pom.xml
@@ -1,4 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright (C) 2018, protos software gmbh (http://www.protos.de).
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License 2.0
+ which accompanies this distribution, and is available at
+ https://www.eclipse.org/legal/epl-2.0/
+
+ SPDX-License-Identifier: EPL-2.0
+-->
+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

Back to the top