]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix files which should be using DOS style newlines
authorMark Andrews <marka@isc.org>
Mon, 13 Dec 2004 02:06:53 +0000 (02:06 +0000)
committerMark Andrews <marka@isc.org>
Mon, 13 Dec 2004 02:06:53 +0000 (02:06 +0000)
util/kit.sh

index 29a32387b9afc4f0af0c114c5bb2a0a8ef4100ac..ea12ff86d4f4a9b924168f74fc6c91e369dd6ca7 100644 (file)
@@ -15,7 +15,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: kit.sh,v 1.28 2004/06/03 02:45:03 marka Exp $
+# $Id: kit.sh,v 1.29 2004/12/13 02:06:53 marka Exp $
 
 # Make a release kit
 #
@@ -126,6 +126,17 @@ chmod +x configure install-sh mkinstalldirs \
         lib/bind/configure lib/bind/mkinstalldirs \
         bin/tests/system/ifconfig.sh
 
+# Fix files which should be using DOS style newlines
+windirs=`find lib bin -type d -name win32`
+windirs="$windirs win32utils"
+winnames="-name *.mak -or -name *.dsp -or -name *.dsw -or -name *.txt -or -name *.bat"
+for f in `find $windirs -type f \( $winnames \) -print`
+do
+       awk '{sub("\r$", "", $0); printf("%s\r\n", $0);}' < $f > tmp
+       touch -r $f tmp
+       mv tmp $f
+done
+
 cd .. || exit 1
 
 kit=$topdir.tar.gz