win32 fixes

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@158 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-09-11 07:51:32 +00:00
parent 28c392783c
commit 16ccc78775
4 changed files with 30 additions and 23 deletions

View file

@ -54,6 +54,7 @@ distclean: clean
dist: mo
rm -rf debian/tmp
python setup.py sdist --formats=gztar,zip bdist_rpm
python setup.py bdist_wininst
fakeroot debian/rules binary
mv -f ../$(DEBPACKAGE) dist

View file

@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
import re,string,DNS,sys,Config,cgi,urllib,linkcheck
import os,re,string,DNS,sys,Config,cgi,urllib,linkcheck
from rfc822 import AddressList
from HostCheckingUrlData import HostCheckingUrlData
from smtplib import SMTP
@ -27,7 +27,8 @@ headers = r"\?(%s=%s(&%s=%s)*)$" % (word, word, word, word)
headers_re = re.compile(headers)
# parse /etc/resolv.conf (only on UNIX systems)
DNS.ParseResolvConf()
if os.name=='posix':
DNS.ParseResolvConf()
class MailtoUrlData(HostCheckingUrlData):
"Url link with mailto scheme"

View file

@ -1,21 +1,21 @@
@echo off
rem Copyright (C) 2000 Bastian Kleineidam
rem
rem This program is free software; you can redistribute it and/or modify
rem it under the terms of the GNU General Public License as published by
rem the Free Software Foundation; either version 2 of the License, or
rem (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program; if not, write to the Free Software
rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
rem uncomment the next line to enable german output
rem set LC_MESSAGES=de
rem Limited to 9 parameters? Is there a $* for Windows?
python "$install_scripts\linkchecker" %1 %2 %3 %4 %5 %6 %7 %8 %9
@echo off
rem Copyright (C) 2000 Bastian Kleineidam
rem
rem This program is free software; you can redistribute it and/or modify
rem it under the terms of the GNU General Public License as published by
rem the Free Software Foundation; either version 2 of the License, or
rem (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program; if not, write to the Free Software
rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
rem uncomment the next line to enable german output
rem set LC_MESSAGES=de
rem Limited to 9 parameters? Is there a $* for Windows?
"$python" "$install_scripts\linkchecker" %1 %2 %3 %4 %5 %6 %7 %8 %9

View file

@ -48,6 +48,11 @@ class LCDistribution(Distribution):
Distribution.run_commands(self)
def check_ssl(self):
if 'bdist_wininst' in self.commands and os.name!='nt':
self.announce(
"""bdist_wininst command found on non-Windows platform.
Disabling SSL compilation""")
return
ok = 0
c = self.get_command_obj('build_ext')
c.ensure_finalized()