mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-17 12:51:01 +00:00
win32 fixes and file moves
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@89 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
f7b068e500
commit
dbc269f0f9
9 changed files with 40 additions and 35 deletions
|
|
@ -4,7 +4,6 @@ test.prof
|
|||
*-out.*
|
||||
*.so
|
||||
*.o
|
||||
*.mo
|
||||
build
|
||||
linkchecker-*.tar.gz
|
||||
MANIFEST
|
||||
|
|
|
|||
23
INSTALL
23
INSTALL
|
|
@ -6,27 +6,28 @@ You need Python >= 1.5.2
|
|||
You get Python from http://www.python.org
|
||||
|
||||
Optionally packages:
|
||||
Distutils >= 0.9 from http://www.python.org/sigs/distutils-sig/
|
||||
Distutils >= 0.8.3 from http://www.python.org/sigs/distutils-sig/
|
||||
OpenSSL from http://www.openssl.org
|
||||
You will need Perl for Win32 (available from
|
||||
http://www.activestate.com/ActivePerl) if you want to install OpenSSL
|
||||
on Windows!
|
||||
|
||||
Install with Distutils:
|
||||
If you have the Distutils, run "python setup.py install".
|
||||
|
||||
Install with Distutils:
|
||||
This is the preferred way to install because its the easy way.
|
||||
If you have the Distutils, run "python setup.py install".
|
||||
Debian users can build the .deb package with "debian/rules binary".
|
||||
|
||||
Install without Distutils:
|
||||
Adjust the sys.path.append argument in the file 'linkchecker' to point
|
||||
to the distribution directory.
|
||||
Now you can type "python linkchecker" (or on Unix: just "./linkchecker") to
|
||||
run LinkChecker.
|
||||
Unix users copy now the 'linkchecker' file to a directory in their $path.
|
||||
For Windows users, I included a batch script 'linkchecker.bat'. You have to
|
||||
adjust the directory in this script to point to the directory
|
||||
where the 'linkchecker' file is. Now you can copy 'linkchecker.bat' in
|
||||
a directory in your PATH.
|
||||
|
||||
Running LinkChecker from any directory:
|
||||
Unix users can put the "linkchecker" script somewhere in a directory in
|
||||
their $path.
|
||||
For Windows users, I included a batch script 'linkchecker.bat'. You have to
|
||||
adjust the distribution directory in this script to point to the directory
|
||||
where the 'linkchecker' file is. Now you can copy 'linkchecker.bat' in
|
||||
a directory in your PATH and run it.
|
||||
Type "linkchecker" followed by your URLs you want to check.
|
||||
Type "linkchecker -h" for help on the commandline syntax.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
include MANIFEST.in
|
||||
include INSTALL LICENSE TODO
|
||||
include linkchecker linkchecker.bat
|
||||
include linkchecker linkchecker.bat.tmpl
|
||||
include lc.cgi lc.fcgi lc.sz_fcgi
|
||||
include Makefile
|
||||
include create.sql
|
||||
|
|
@ -12,3 +12,4 @@ include debian/dirs
|
|||
include debian/docs
|
||||
include DNS/README
|
||||
recursive-include test *.html *.py
|
||||
recursive-include locale
|
||||
|
|
|
|||
13
README
13
README
|
|
@ -10,10 +10,11 @@ o output can be colored or normal text, HTML, SQL, CSV or a GML sitemap
|
|||
o HTTP/1.1, HTTPS, FTP, mailto:, news:, Gopher, Telnet and local file links
|
||||
are supported
|
||||
Javascript links are currently ignored
|
||||
o restrict link checking to your local domain
|
||||
o restrict link checking with regular expression filters for URLs
|
||||
o HTTP proxy support
|
||||
o give username/password for HTTP and FTP authorization
|
||||
o robots.txt exclusion protocol support
|
||||
o internationalization support (currently english and german)
|
||||
|
||||
LinkChecker is licensed under the GNU Public License.
|
||||
Credits go to Guido van Rossum for making Python. His hovercraft is
|
||||
|
|
@ -39,9 +40,9 @@ DNS see DNS/README
|
|||
fcgi.py and sz_fcgi.py from http://saarland.sz-sb.de/~ajung/sz_fcgi/
|
||||
|
||||
Note that the following packages are modified by me:
|
||||
httplib.py (renamed to http11lib.py)
|
||||
fcgi.py
|
||||
sz_fcgi.py
|
||||
httplib.py (renamed to http11lib.py and a bug fixed)
|
||||
fcgi.py (implemented immediate output)
|
||||
sz_fcgi.py (simplified the code)
|
||||
|
||||
|
||||
The big picture (if you want to hack on the code):
|
||||
|
|
@ -59,8 +60,8 @@ equivalents if threading is disabled.
|
|||
calls linkcheck.Config.checkUrl(), which calls
|
||||
linkcheck.UrlData.check().
|
||||
An UrlData object represents a single URL with all attached data like
|
||||
validity, check time and so on. These values are filled when the
|
||||
UrlData.check() function exits.
|
||||
validity, check time and so on. These values are filled by the
|
||||
UrlData.check() function.
|
||||
Derived from the base class UrlData are the different URL types:
|
||||
HttpUrlData for http:// links, MailtoUrlData for mailto: links and so on.
|
||||
|
||||
|
|
|
|||
7
debian/rules
vendored
7
debian/rules
vendored
|
|
@ -33,13 +33,10 @@ install: build
|
|||
dh_clean -k
|
||||
dh_installdirs
|
||||
# Add here commands to install the package into debian/tmp.
|
||||
# german translation
|
||||
msgfmt -o locale/de/LC_MESSAGES/linkcheck.mo locale/de/LC_MESSAGES/linkcheck.po
|
||||
# ha! the root option finally made it into distutils
|
||||
./setup.py install --root=`pwd`/debian/tmp
|
||||
# german translation mit Rezepten von Zlatko :)
|
||||
msgfmt -o linkcheck.mo linkcheck/linkcheck.po
|
||||
install -c -m 644 linkcheck.mo debian/tmp/usr/share/locale/de/LC_MESSAGES/
|
||||
# remove following line if Distutils have script support
|
||||
#install -c -m 755 linkchecker debian/tmp/usr/bin/
|
||||
install -c -m 644 linkcheckerrc debian/tmp/etc/
|
||||
install -c -m 644 DNS/README debian/tmp/usr/share/doc/$(PACKAGE)/README.dns
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@echo off
|
||||
|
||||
rem Limited to 9 parameters? Is there a $* for Windows?
|
||||
python "@install_scripts@\linkchecker" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
rem Limited to 9 parameters? Is there a * for Windows?
|
||||
python "$path_to_linkchecker\linkchecker" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
|
|
|||
1
locale/de/LC_MESSAGES/.cvsignore
Normal file
1
locale/de/LC_MESSAGES/.cvsignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
*.mo
|
||||
23
setup.py
23
setup.py
|
|
@ -52,13 +52,16 @@ class LCDistribution(Distribution):
|
|||
return d
|
||||
return 0
|
||||
|
||||
|
||||
def replace_in_scripts(self):
|
||||
inst = self.find_command_obj("install")
|
||||
inst.ensure_ready()
|
||||
t = Template("linkchecker.bat.tmpl")
|
||||
f = open("linkchecker.bat","w")
|
||||
f.write(t.fill_in({"path_to_linkchecker": inst.install_scripts}))
|
||||
f.close()
|
||||
if sys.platform=='win32':
|
||||
inst = self.find_command_obj("install")
|
||||
inst.ensure_ready()
|
||||
t = Template("linkchecker.bat.tmpl")
|
||||
f = open("linkchecker.bat","w")
|
||||
f.write(t.fill_in({"path_to_linkchecker": inst.install_scripts}))
|
||||
f.close()
|
||||
self.scripts.append('linkchecker.bat')
|
||||
|
||||
|
||||
setup (name = "linkchecker",
|
||||
|
|
@ -78,12 +81,14 @@ o output can be colored or normal text, HTML, SQL, CSV or a GML sitemap
|
|||
o HTTP/1.1, HTTPS, FTP, mailto:, news:, Gopher, Telnet and local file links
|
||||
are supported.
|
||||
Javascript links are currently ignored
|
||||
o restrict link checking to your local domain
|
||||
o restrict link checking with regular expression filters for URLs
|
||||
o HTTP proxy support
|
||||
o give username/password for HTTP and FTP authorization
|
||||
o robots.txt exclusion protocol support
|
||||
o robots.txt exclusion protocol support
|
||||
o internationalization support (currently english and german)
|
||||
""",
|
||||
distclass = LCDistribution,
|
||||
packages = ['','DNS','linkcheck'],
|
||||
scripts = ['linkchecker', 'linkchecker.bat'],
|
||||
scripts = ['linkchecker'],
|
||||
data = ['locale/de/LC_MESSAGES/linkcheck.po'],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue