From cc28dbd0189d45c7c3b75dff5dd48c3abb7feefd Mon Sep 17 00:00:00 2001 From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Mon, 26 Apr 2004 18:45:54 +0000 Subject: [PATCH] Cygwin: Added strict case checking and warning on DOS text file type git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1687 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/autogen.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sm5/autogen.sh b/sm5/autogen.sh index ff347befd..51168ef37 100755 --- a/sm5/autogen.sh +++ b/sm5/autogen.sh @@ -1,11 +1,26 @@ #!/bin/sh -e -# $Id: autogen.sh,v 1.6 2004/03/23 11:25:50 ballen4705 Exp $ +# $Id: autogen.sh,v 1.7 2004/04/26 18:45:54 chrfranke Exp $ # # Generate ./configure from config.in and Makefile.in from Makefile.am. # This also adds files like missing,depcomp,install-sh to the source # direcory. To update these files at a later date use: # autoreconf -f -i -v + +# Cygwin? +test -x /usr/bin/uname && /usr/bin/uname | grep -i CYGWIN >/dev/null && +{ + # Enable strict case checking + # (to avoid e.g "DIST_COMMON = ... ChangeLog ..." in Makefile.in) + export CYGWIN="${CYGWIN}${CYGWIN:+ }check_case:strict" + + # Check for Unix text file type + echo > dostest.tmp + test "`wc -c < dostest.tmp`" -eq 1 || + echo "Warning: DOS text file type set, 'make dist' and related targets will not work." + rm -f dostest.tmp +} + typep() { cmd=$1 ; TMP=$IFS ; IFS=: ; set $PATH -- GitLab