mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 23:54:44 +00:00
win32 fixes
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@91 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
089dc56772
commit
af05fad1d6
8 changed files with 42 additions and 19 deletions
14
INSTALL
14
INSTALL
|
|
@ -21,13 +21,13 @@ 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.
|
||||
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.
|
||||
Copy 'linkcheck/__init__.py.tmpl' to 'linkcheck/__init__.py' and
|
||||
replace $install_data with the distribution directory.
|
||||
Windows users copy 'linkchecker.bat.tmpl' to 'linkchecker.bat' and
|
||||
replace $install_scripts with the distribution directory.
|
||||
After all, put the distribution directory in your path.
|
||||
|
||||
Running LinkChecker from any directory:
|
||||
Running LinkChecker:
|
||||
Type "linkchecker" followed by your URLs you want to check.
|
||||
Type "linkchecker -h" for help on the commandline syntax.
|
||||
Type "linkchecker -h" for help.
|
||||
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ include debian/docs
|
|||
include DNS/README
|
||||
include linkcheck/__init__.py.tmpl
|
||||
recursive-include test *.html *.py
|
||||
recursive-include locale
|
||||
recursive-include locale *.mo *.po
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -13,13 +13,15 @@ TAR = tar
|
|||
ZIP = zip
|
||||
|
||||
all:
|
||||
@echo "run ./setup.py --help to see how to install"
|
||||
@echo "run python setup.py --help to see how to install"
|
||||
|
||||
clean:
|
||||
./setup.py clean --all
|
||||
rm -rf $(ALLPACKAGES) $(PACKAGE)-out.*
|
||||
|
||||
dist:
|
||||
# german translation
|
||||
msgfmt -o locale/de/LC_MESSAGES/linkcheck.mo locale/de/LC_MESSAGES/linkcheck.po
|
||||
./setup.py sdist
|
||||
fakeroot debian/rules binary
|
||||
|
||||
|
|
|
|||
26
README
26
README
|
|
@ -2,7 +2,9 @@
|
|||
=============
|
||||
|
||||
With LinkChecker you can check your HTML documents for broken links.
|
||||
Features:
|
||||
|
||||
Features
|
||||
--------
|
||||
o recursive checking
|
||||
o multithreaded
|
||||
o output can be colored or normal text, HTML, SQL, CSV or a GML sitemap
|
||||
|
|
@ -16,6 +18,9 @@ o give username/password for HTTP and FTP authorization
|
|||
o robots.txt exclusion protocol support
|
||||
o internationalization support (currently english and german)
|
||||
|
||||
|
||||
License
|
||||
--------
|
||||
LinkChecker is licensed under the GNU Public License.
|
||||
Credits go to Guido van Rossum for making Python. His hovercraft is
|
||||
full of eels!
|
||||
|
|
@ -25,7 +30,9 @@ robots.txt parse algorithm.
|
|||
I want to thank everybody who gave me feedback, bug reports and
|
||||
suggestions.
|
||||
|
||||
Versioning:
|
||||
|
||||
Versioning
|
||||
----------
|
||||
Version numbers have the same meaning as Linux Kernel version numbers.
|
||||
The first number is the major package version. The second number is
|
||||
the minor package version. An odd second number stands for development
|
||||
|
|
@ -33,11 +40,14 @@ versions, an even number for stable version. The third number is a
|
|||
package release sequence number.
|
||||
So for example 1.1.5 is the fifth release of the 1.1 development package.
|
||||
|
||||
Included packages:
|
||||
|
||||
Included packages
|
||||
-----------------
|
||||
httplib from http://www.lyra.org/greg/python/
|
||||
httpslib from http://home.att.net/~nvsoft1/ssl_wrapper.html
|
||||
DNS see DNS/README
|
||||
fcgi.py and sz_fcgi.py from http://saarland.sz-sb.de/~ajung/sz_fcgi/
|
||||
fintl.py from http://sourceforge.net/snippet/detail.php?type=snippet&id=100059
|
||||
|
||||
Note that the following packages are modified by me:
|
||||
httplib.py (renamed to http11lib.py and a bug fixed)
|
||||
|
|
@ -45,7 +55,15 @@ fcgi.py (implemented immediate output)
|
|||
sz_fcgi.py (simplified the code)
|
||||
|
||||
|
||||
The big picture (if you want to hack on the code):
|
||||
Internationalization
|
||||
--------------------
|
||||
For german output execute "export LC_MESSAGES=de" in bash and
|
||||
"setenv LC_MESSAGES de" in tcsh.
|
||||
Under Windows, execute "set LC_MESSAGES=de".
|
||||
|
||||
Code design
|
||||
-----------
|
||||
Only if you want to hack on the code.
|
||||
|
||||
(1) Look at the linkchecker script. This thing just reads all the
|
||||
commandline options and stores them in a Config object.
|
||||
|
|
|
|||
3
debian/rules
vendored
3
debian/rules
vendored
|
|
@ -32,9 +32,6 @@ install: build
|
|||
dh_testroot
|
||||
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
|
||||
install -c -m 644 linkcheckerrc debian/tmp/etc/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
@echo off
|
||||
|
||||
rem if you want to have german output uncomment the next line
|
||||
rem set LC_MESSAGES=de
|
||||
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,4 +1,6 @@
|
|||
@echo off
|
||||
|
||||
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 "$path_to_linkchecker" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
python "$install_scripts\linkchecker" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -63,7 +63,7 @@ class LCDistribution(Distribution):
|
|||
if sys.platform=='win32':
|
||||
t = Template("linkchecker.bat.tmpl")
|
||||
f = open("linkchecker.bat","w")
|
||||
f.write(t.fill_in({"path_to_linkchecker": inst.install_scripts}))
|
||||
f.write(t.fill_in({"install_scripts": inst.install_scripts}))
|
||||
f.close()
|
||||
self.scripts.append('linkchecker.bat')
|
||||
|
||||
|
|
@ -94,5 +94,7 @@ o internationalization support (currently english and german)
|
|||
distclass = LCDistribution,
|
||||
packages = ['','DNS','linkcheck'],
|
||||
scripts = ['linkchecker'],
|
||||
data = ['locale/de/LC_MESSAGES/linkcheck.po'],
|
||||
data = ['locale/de/LC_MESSAGES/linkcheck.mo',
|
||||
'locale/de/LC_MESSAGES/linkcheck.po',
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue