Skip to main content
summaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 16:20:39 -0500
committerJonah Graham2018-11-20 16:20:39 -0500
commit48d2271a58a68743e428d3096d2bca054d04e310 (patch)
tree235ba23e71c393ad22d1d57fc8fdfec14754c4ee /releng
parent3cf0297769e5cfb91823e93ce570120a75fe01ce (diff)
downloadorg.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.tar.gz
org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.tar.xz
org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.zip
Bug 540373: Normalize newlines with .gitattributes
There is also a new script to verify completeness of .gitattributes: releng/scripts/verify_gitattributes.sh Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
Diffstat (limited to 'releng')
-rw-r--r--releng/org.eclipse.cdt.native-feature/.project34
-rw-r--r--releng/org.eclipse.cdt.sdk/about.ini54
-rw-r--r--releng/org.eclipse.cdt.sdk/about.mappings16
-rw-r--r--releng/org.eclipse.cdt.testing/about.ini54
-rw-r--r--releng/org.eclipse.cdt.testing/about.mappings16
-rw-r--r--releng/org.eclipse.cdt/.eclipseproduct6
-rw-r--r--releng/org.eclipse.cdt/about.ini48
-rw-r--r--releng/org.eclipse.cdt/about.mappings16
-rw-r--r--releng/org.eclipse.cdt/css/overview.css18
-rwxr-xr-xreleng/scripts/verify_gitattributes.sh22
10 files changed, 153 insertions, 131 deletions
diff --git a/releng/org.eclipse.cdt.native-feature/.project b/releng/org.eclipse.cdt.native-feature/.project
index a5e7312a07..446e1d4ca8 100644
--- a/releng/org.eclipse.cdt.native-feature/.project
+++ b/releng/org.eclipse.cdt.native-feature/.project
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.cdt.native-feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.cdt.native-feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
diff --git a/releng/org.eclipse.cdt.sdk/about.ini b/releng/org.eclipse.cdt.sdk/about.ini
index bd86cbf210..656877d0af 100644
--- a/releng/org.eclipse.cdt.sdk/about.ini
+++ b/releng/org.eclipse.cdt.sdk/about.ini
@@ -1,27 +1,27 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%blurb
-
-# Property "windowImage" contains path to window icon (16x16)
-# needed for primary features only
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=cdt_logo_icon32.png
-
-# Property "aboutImage" contains path to product image (500x330 or 115x164)
-# needed for primary features only
-
-# Property "appName" contains name of the application (translated)
-# needed for primary features only
-
-# Property "welcomePage" contains path to welcome page (special XML-based format)
-welcomePage=$nl$/welcome.xml
-
-# Property "welcomePerspective" contains the id of the perspective in which the
-# welcome page is to be opened.
-# optional
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=cdt_logo_icon32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+welcomePage=$nl$/welcome.xml
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
diff --git a/releng/org.eclipse.cdt.sdk/about.mappings b/releng/org.eclipse.cdt.sdk/about.mappings
index c39de2d7fe..0824105e69 100644
--- a/releng/org.eclipse.cdt.sdk/about.mappings
+++ b/releng/org.eclipse.cdt.sdk/about.mappings
@@ -1,9 +1,9 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-# The following should contain the build version.
-# e.g. "0=20020612"
-# This value will be added automaticaly via the build scripts
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+# The following should contain the build version.
+# e.g. "0=20020612"
+# This value will be added automaticaly via the build scripts
0=@build@ \ No newline at end of file
diff --git a/releng/org.eclipse.cdt.testing/about.ini b/releng/org.eclipse.cdt.testing/about.ini
index bd86cbf210..656877d0af 100644
--- a/releng/org.eclipse.cdt.testing/about.ini
+++ b/releng/org.eclipse.cdt.testing/about.ini
@@ -1,27 +1,27 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%blurb
-
-# Property "windowImage" contains path to window icon (16x16)
-# needed for primary features only
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=cdt_logo_icon32.png
-
-# Property "aboutImage" contains path to product image (500x330 or 115x164)
-# needed for primary features only
-
-# Property "appName" contains name of the application (translated)
-# needed for primary features only
-
-# Property "welcomePage" contains path to welcome page (special XML-based format)
-welcomePage=$nl$/welcome.xml
-
-# Property "welcomePerspective" contains the id of the perspective in which the
-# welcome page is to be opened.
-# optional
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=cdt_logo_icon32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+welcomePage=$nl$/welcome.xml
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
diff --git a/releng/org.eclipse.cdt.testing/about.mappings b/releng/org.eclipse.cdt.testing/about.mappings
index c39de2d7fe..0824105e69 100644
--- a/releng/org.eclipse.cdt.testing/about.mappings
+++ b/releng/org.eclipse.cdt.testing/about.mappings
@@ -1,9 +1,9 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-# The following should contain the build version.
-# e.g. "0=20020612"
-# This value will be added automaticaly via the build scripts
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+# The following should contain the build version.
+# e.g. "0=20020612"
+# This value will be added automaticaly via the build scripts
0=@build@ \ No newline at end of file
diff --git a/releng/org.eclipse.cdt/.eclipseproduct b/releng/org.eclipse.cdt/.eclipseproduct
index 1e73475d1e..79e60ca28a 100644
--- a/releng/org.eclipse.cdt/.eclipseproduct
+++ b/releng/org.eclipse.cdt/.eclipseproduct
@@ -1,4 +1,4 @@
-name=Eclipse C/C++ Development Tools
-id=org.eclipse.cdt
-version=1.0.0
+name=Eclipse C/C++ Development Tools
+id=org.eclipse.cdt
+version=1.0.0
feature.default.id=org.eclipse.cdt \ No newline at end of file
diff --git a/releng/org.eclipse.cdt/about.ini b/releng/org.eclipse.cdt/about.ini
index 2411cc2109..e07a7bb377 100644
--- a/releng/org.eclipse.cdt/about.ini
+++ b/releng/org.eclipse.cdt/about.ini
@@ -1,24 +1,24 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%blurb
-
-# Property "windowImage" contains path to window icon (16x16)
-# needed for primary features only
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=cdt_logo_icon32.png
-
-# Property "aboutImage" contains path to product image (500x330 or 115x164)
-# needed for primary features only
-
-# Property "appName" contains name of the application (translated)
-# needed for primary features only
-
-# Property "welcomePerspective" contains the id of the perspective in which the
-# welcome page is to be opened.
-# optional
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=cdt_logo_icon32.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
diff --git a/releng/org.eclipse.cdt/about.mappings b/releng/org.eclipse.cdt/about.mappings
index c39de2d7fe..0824105e69 100644
--- a/releng/org.eclipse.cdt/about.mappings
+++ b/releng/org.eclipse.cdt/about.mappings
@@ -1,9 +1,9 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-# The following should contain the build version.
-# e.g. "0=20020612"
-# This value will be added automaticaly via the build scripts
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+# The following should contain the build version.
+# e.g. "0=20020612"
+# This value will be added automaticaly via the build scripts
0=@build@ \ No newline at end of file
diff --git a/releng/org.eclipse.cdt/css/overview.css b/releng/org.eclipse.cdt/css/overview.css
index c2e11cc9b1..d1f6b7680b 100644
--- a/releng/org.eclipse.cdt/css/overview.css
+++ b/releng/org.eclipse.cdt/css/overview.css
@@ -1,9 +1,9 @@
-a#cdt img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
-a#cdt:hover img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
-
-a#hello-world-cdt img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
-a#hello-world-cdt:hover img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
-
-body {
- background-image : url(../../org.eclipse.platform/css/graphics/contentpage/overview_wtr.jpg);
-}
+a#cdt img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
+a#cdt:hover img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
+
+a#hello-world-cdt img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
+a#hello-world-cdt:hover img { background-image : url(graphics/obj_48/cdt_logo_icon.png); }
+
+body {
+ background-image : url(../../org.eclipse.platform/css/graphics/contentpage/overview_wtr.jpg);
+}
diff --git a/releng/scripts/verify_gitattributes.sh b/releng/scripts/verify_gitattributes.sh
new file mode 100755
index 0000000000..2f5a58c044
--- /dev/null
+++ b/releng/scripts/verify_gitattributes.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Print out how many of each file extension there is
+# find . ! -path "./.git/*" -type f -printf "%f\n" | sed -E -e 's/.+\./\*./' | sort -u | while read i; do find . ! -path "./.git/*" -name $i | wc -l | tr -d '\n'; echo " : $i" ; done | sort -n
+
+# Print out all the unique file extensions, including unique names with no extension
+# Each of these should be in .gitattributes
+# find . ! -path "./.git/*" -type f -printf "%f\n" | sed -E -e 's/.+\./\*./' | sort -u
+
+find . ! -path "./.git/*" -type f -printf "%f\n" | sed -E -e 's/.+\./\\\*\\./' | sort -u | while read i
+do
+ echo -n "Checking $i in .gitattributes: "
+ if grep "^$i " .gitattributes
+ then
+ echo "Found"
+ else
+ echo MISSING $i in .gitattributes. List of file:
+ find . ! -path "./.git/*" -type f -name "$i"
+ exit 1
+ fi
+done
+

Back to the top