mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00

This commit contains the formatter settings and compiler settings, using org.eclipse.cdt.core as the master for .settings and a script to copy them to all the other projects with apply_jdt_prefs_to_all_projects.sh Change-Id: Ifd1a45879bed716273cae0ea05b55f629210c36e
14 lines
625 B
Bash
Executable file
14 lines
625 B
Bash
Executable file
#!/bin/bash
|
|
|
|
for i in `find . -name .project`; do
|
|
d=`dirname $i`;
|
|
if test ! -e $d/feature.xml; then
|
|
mkdir -p $d/.settings
|
|
cp core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.* core/org.eclipse.cdt.core/.settings/org.eclipse.pde.* $d/.settings
|
|
# For test plug-ins, don't warn on missing NLS
|
|
if echo $i | grep '\.tests[/\.]' > /dev/null; then
|
|
sed -i '-es@org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning@org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore@' $d/.settings/org.eclipse.jdt.core.prefs
|
|
fi
|
|
fi
|
|
done
|
|
|