mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
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
This commit is contained in:
parent
3cf0297769
commit
48d2271a58
609 changed files with 72673 additions and 72509 deletions
142
.gitattributes
vendored
Normal file
142
.gitattributes
vendored
Normal file
|
@ -0,0 +1,142 @@
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
# Generic files
|
||||||
|
AUTHORS text
|
||||||
|
ChangeLog text
|
||||||
|
COPYING text
|
||||||
|
NEWS text
|
||||||
|
README text
|
||||||
|
*.txt text
|
||||||
|
*.zip binary
|
||||||
|
|
||||||
|
# C-like Sources
|
||||||
|
*.asm text
|
||||||
|
*.c text
|
||||||
|
*.cc text
|
||||||
|
*.cpp text
|
||||||
|
*.h text
|
||||||
|
*.s text
|
||||||
|
*.S text
|
||||||
|
|
||||||
|
# C-like configuration/scripts
|
||||||
|
*.ac text
|
||||||
|
*.am text
|
||||||
|
*.bat text
|
||||||
|
*.build text
|
||||||
|
*.incl text
|
||||||
|
makefile text
|
||||||
|
Makefile text
|
||||||
|
*.mk text
|
||||||
|
*.sh text
|
||||||
|
|
||||||
|
# Qt
|
||||||
|
*.pro text
|
||||||
|
*.qml text
|
||||||
|
*.qrc text
|
||||||
|
|
||||||
|
# Visual Studio
|
||||||
|
*.dsp text eol=crlf
|
||||||
|
*.dsw text eol=crlf
|
||||||
|
*.filters text eol=crlf
|
||||||
|
*.sln text eol=crlf
|
||||||
|
*.vcxproj text eol=crlf
|
||||||
|
|
||||||
|
# C output files
|
||||||
|
# (These should not normally be checked in, exceptions for pre-compiled libraries and tests)
|
||||||
|
*.o binary
|
||||||
|
*.d text
|
||||||
|
*.dll binary
|
||||||
|
*.a binary
|
||||||
|
*.exe binary
|
||||||
|
*.out binary
|
||||||
|
*.app binary
|
||||||
|
*.jnilib binary
|
||||||
|
*.so binary
|
||||||
|
|
||||||
|
# Web/Javascript/Node
|
||||||
|
*.css text
|
||||||
|
*.htm text
|
||||||
|
*.html text
|
||||||
|
*.js text
|
||||||
|
*.json text
|
||||||
|
.npmignore text
|
||||||
|
package-list text
|
||||||
|
*.xml text
|
||||||
|
*.xsd text
|
||||||
|
*.xsl text
|
||||||
|
|
||||||
|
# Images
|
||||||
|
*.gif binary
|
||||||
|
*.icns binary
|
||||||
|
*.ico binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.png binary
|
||||||
|
*.PNG binary
|
||||||
|
*.xpm binary
|
||||||
|
|
||||||
|
# Java/Eclipse
|
||||||
|
*.java text
|
||||||
|
*.properties text
|
||||||
|
.api_filters text
|
||||||
|
.classpath text
|
||||||
|
*.exsd text
|
||||||
|
*.g text
|
||||||
|
*.inf text
|
||||||
|
*.ini text
|
||||||
|
*.launch text
|
||||||
|
*.mappings text
|
||||||
|
*.MF text
|
||||||
|
.options text
|
||||||
|
*.options text
|
||||||
|
*.prefs text
|
||||||
|
*.product text
|
||||||
|
.project text
|
||||||
|
*.setup text
|
||||||
|
*.target text
|
||||||
|
|
||||||
|
# Java output files
|
||||||
|
# (These should not normally be checked in, exceptions for pre-compiled libraries and tests)
|
||||||
|
*.class binary
|
||||||
|
*.jar binary
|
||||||
|
|
||||||
|
# Files used in tests
|
||||||
|
*.awts text
|
||||||
|
be32 binary
|
||||||
|
be32lib binary
|
||||||
|
be64 binary
|
||||||
|
be64lib binary
|
||||||
|
exe binary
|
||||||
|
exebig_g binary
|
||||||
|
exe_g binary
|
||||||
|
*.expected text
|
||||||
|
*.F90 text
|
||||||
|
*.init text
|
||||||
|
launchConfigTestGdbinit text
|
||||||
|
le32 binary
|
||||||
|
le32lib binary
|
||||||
|
le64 binary
|
||||||
|
le64lib binary
|
||||||
|
*.main text
|
||||||
|
output-1 text
|
||||||
|
*.pda text
|
||||||
|
*.rts text
|
||||||
|
test_commands text
|
||||||
|
|
||||||
|
# Other special files
|
||||||
|
cdtOptions text
|
||||||
|
.contentsettings text
|
||||||
|
*.csv text
|
||||||
|
*.dia binary
|
||||||
|
*.dictionary text
|
||||||
|
.eclipseproduct text
|
||||||
|
.euml2 text
|
||||||
|
.gitattributes text
|
||||||
|
.gitignore text
|
||||||
|
*.patch text
|
||||||
|
*.src text
|
||||||
|
*.tmLanguage text
|
||||||
|
*.top text
|
||||||
|
*.ucd text
|
||||||
|
.umlproject text
|
||||||
|
*.upc text
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2013
|
# Visual Studio 2013
|
||||||
VisualStudioVersion = 12.0.31101.0
|
VisualStudioVersion = 12.0.31101.0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual C++ Express 2010
|
# Visual C++ Express 2010
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pty", "pty.vcxproj", "{5589D515-1C56-4641-97CF-3C4561109258}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pty", "pty.vcxproj", "{5589D515-1C56-4641-97CF-3C4561109258}"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="include">
|
<Filter Include="include">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="agent">
|
<Filter Include="agent">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="include">
|
<Filter Include="include">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="Source Files">
|
<Filter Include="Source Files">
|
||||||
|
|
22
releng/scripts/verify_gitattributes.sh
Executable file
22
releng/scripts/verify_gitattributes.sh
Executable file
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue