if ! grep "if 0 .* QHULL_CRTDBG" src/libqhull/user.h >/dev/null; then
exit_err $LINENO "QHULL_CRTDBG is defined in src/libqhull/user.h"
elif ! grep "if 0 .* QHULL_CRTDBG" src/libqhull_r/user_r.h >/dev/null; then
exit_err $LINENO "QHULL_CRTDBG is defined in src/libqhull_r/user_r.h"
elif ! grep "^#define qh_QHpointer 0" src/libqhull/user.h >/dev/null; then
exit_err $LINENO "qh_QHpointer is defined in src/libqhull/user.h"
fi
if (od -a Makefile src/libqhull/Makefile src/libqhull_r/Makefile build/*.in html/*.man eg/*.sh eg/q_eg eg/q_egtest eg/q_test | grep cr >/dev/null); then
exit_err $LINENO "A Makefile contains DOS line endings (od -a Makefile | grep cr)"
exit_if_err $HERE "Error while checking $zip_file"
}
function check_tgz_file #tgz_file
{
local tgz_file=$1
local HERE=$(ro_here)
log_note $HERE "Check $tgz_file"
ls -l $tgz_file >>$err_log
exit_if_err $HERE "Did not create $tgz_file"
tar -tzf $tgz_file >/dev/null 2>>$err_log
exit_if_err $HERE "Can not extract -- tar -tzf $tgz_file"
}
function convert_to_unix #dir $qhull_2ufiles -- convert files to Unix, preserving modtime from $root_dir
{
local temp_dir=$1
local HERE=$(ro_here)
log_note $HERE "Convert files to unix format in $1"
for f in $(find $temp_dir -type f | grep -E '^([^.]*|.*\.(ac|am|bashrc|c|cfg|cpp|css|d|dpatch|h|htm|html|man|pl|pri|pro|profile|sh|sql|termcap|txt|xml|xsd|xsl))$'); do