Skip to content
Snippets Groups Projects
Commit cc28dbd0 authored by chrfranke's avatar chrfranke
Browse files

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
parent 411737a9
No related branches found
No related tags found
No related merge requests found
#!/bin/sh -e #!/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. # Generate ./configure from config.in and Makefile.in from Makefile.am.
# This also adds files like missing,depcomp,install-sh to the source # This also adds files like missing,depcomp,install-sh to the source
# direcory. To update these files at a later date use: # direcory. To update these files at a later date use:
# autoreconf -f -i -v # 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() typep()
{ {
cmd=$1 ; TMP=$IFS ; IFS=: ; set $PATH cmd=$1 ; TMP=$IFS ; IFS=: ; set $PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment