From d0f3352470a2226dc3df7c36b41d0eedcb8e9a77 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 5 Feb 2008 18:34:10 +0000 Subject: [PATCH] tools for svn:eol-style fixups git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20219 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/find-missing-eol-prop | 8 ++++++++ src/util/fix-eol-prop | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 src/util/find-missing-eol-prop create mode 100755 src/util/fix-eol-prop diff --git a/src/util/find-missing-eol-prop b/src/util/find-missing-eol-prop new file mode 100755 index 000000000..6cdad6589 --- /dev/null +++ b/src/util/find-missing-eol-prop @@ -0,0 +1,8 @@ +#!/bin/sh + +find . \( \( -name .svn -o -name .\#\* -o -name \*~ -o -name \#\* -o -name autom4te.cache \) -prune \) -o \( -type f -print \) | \ +while read name; do + if test "`svn pg svn:eol-style $name`" == ""; then + echo svn:eol-style missing on $name + fi +done diff --git a/src/util/fix-eol-prop b/src/util/fix-eol-prop new file mode 100755 index 000000000..346568ca0 --- /dev/null +++ b/src/util/fix-eol-prop @@ -0,0 +1,13 @@ +#!/bin/sh + +find . \( -name \*.c -o -name \*.h -o -name \*.hin -o -name \*.in \ + -o -name \*.txt -o -name Makefile.in -o -name \*.sh -o -name \*.exp \ + -o -name \*.cxx -o -name \*.hxx -o -name \*.html -o -name \*.def \ + -o -name \*.idl -o -name \*.Acf -o -name \*.Idl \ + -o -name Makefile.w32 \ + \) -print | \ +while read name; do + if test "`svn pg svn:eol-style $name`" == ""; then + svn ps svn:eol-style native $name + fi +done -- 2.26.2