install readme file on windows platforms

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@508 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-09-04 22:47:20 +00:00
parent 21c38c93a0
commit aa3a1b785e
5 changed files with 39 additions and 33 deletions

View file

@ -5,3 +5,4 @@
changes, see debian/changelog.
* Default socket timeout is now 10 seconds
* updated linkcheck/timeoutsocket.py to newest version
* updated README and INSTALL

23
INSTALL
View file

@ -4,12 +4,10 @@
Requirements
------------
Python >= 2.1 from http://www.python.org/
PyDNS from http://pydns.sourceforge.net/
For HTTPS support you need to compile Python with the SSL _socket
module.
LinkChecker does *not* run with Python 2.2b2 due to a regex bug in
Python!
Setup
-----
@ -20,13 +18,7 @@ o Unix platforms
- open a commandline window and change to the linkchecker-x.x.x
directory
- run "python setup.py install" to install
For help on setup.py options, run "python setup.py --help".
The local configuration file is $HOME/.linkcheckerrc
To run the program type "linkchecker" followed by your URLs you want
to check.
Type "linkchecker -h" for help.
- run "python setup.py --help" for help about install options
o Windows platforms
@ -34,13 +26,7 @@ o Windows platforms
- open a commandline window (cmd.exe) and change to the
linkchecker-x.x.x directory
- run "python.exe setup.py install" to install
For help on setup.py options, run "python.exe setup.py --help".
To run the program, double-click on "linkchecker.bat" on your
desktop. URL input is interactive.
Another way is executing "python.exe linkchecker" in the Python
Scripts directory.
- run "python.exe setup.py --help" for help about install options
o MacOS 9.x platforms
@ -50,9 +36,6 @@ o MacOS 9.x platforms
- in the popup window, select the "install" command and click "Add"
- click "Ok"; this will copy files into the Python folder
Read the MacOS Python documentation to find out about passing
commandline options to Python scripts.
o MacOS X platforms
- not tested

18
README
View file

@ -24,6 +24,24 @@ Installing, Requirements, Running
Read the file INSTALL.
Running the program
-------------------
o Unix platforms
The local configuration file is $HOME/.linkcheckerrc
Type "linkchecker" followed by your URLs you want to check.
Type "linkchecker -h" for help.
o Windows platforms
Double-click on "linkchecker.bat" on your desktop.
URL input is interactive.
Another way is executing "python.exe linkchecker" in the Python
Scripts directory.
o MacOS 9.x platforms
Read the MacOS Python documentation to find out about passing
commandline options to Python scripts.
License and Credits
-------------------
LinkChecker is licensed under the GNU Public License.

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
linkchecker (1.6.1-1) unstable; urgency=low
* New upstream release, and made this non-native debian package.
* New upstream release, and made this a non-native debian package.
* Standards version 3.5.7.0, no changes
* Depend on Python version 2.1
* Depend on Python version 2.1 (Closes: #159069)
-- Bastian Kleineidam <calvin@debian.org> Tue, 27 Aug 2002 00:10:20 +0200

View file

@ -48,20 +48,29 @@ class MyInstall(install):
from pprint import pformat
data.append('outputs = %s' % pformat(self.get_outputs()))
self.distribution.create_conf_file(self.install_lib, data)
# copy batch file to desktop
if os.name=="nt":
# copy batch file to desktop
path = self.install_scripts
if os.environ.has_key("ALLUSERSPROFILE"):
path = os.path.join(os.environ["ALLUSERSPROFILE"], "Desktop")
elif os.environ.has_key("USERPROFILE"):
path = os.path.join(os.environ["USERPROFILE"], "Desktop")
filename = os.path.join(path, "linkchecker.bat")
data = open("linkchecker.bat").readlines()
data = map(string.strip, data)
data = map(lambda s: s.replace("$python", sys.executable), data)
data = map(lambda s, self=self: s.replace("$install_scripts",
self.install_scripts), data)
self.distribution.create_batch_file(path, data)
self.distribution.create_file(filename, data)
# copy README file to desktop
path = self.install_data
if os.environ.has_key("ALLUSERSPROFILE"):
path = os.path.join(os.environ["ALLUSERSPROFILE"], "Desktop")
elif os.environ.has_key("USERPROFILE"):
path = os.path.join(os.environ["USERPROFILE"], "Desktop")
filename = os.path.join(directory, "LinkChecker_Readme.txt")
data = open("README").read()
self.distribution.create_file(filename, data)
# sent a patch for this, but here it is for compatibility
def dump_dirs (self, msg):
@ -82,22 +91,19 @@ class MyInstall(install):
print " %s: %s" % (opt_name, val)
class MyDistribution(Distribution):
def __init__(self, attrs=None):
Distribution.__init__(self, attrs=attrs)
self.config_file = "_"+self.get_name()+"_configdata.py"
def run_commands(self):
cwd = os.getcwd()
data = []
data.append('config_dir = %s' % `os.path.join(cwd, "config")`)
data.append('config_dir = %s' % `os.path.join(cwd, "config")`)
data.append("install_data = %s" % `cwd`)
self.create_conf_file("", data)
Distribution.run_commands(self)
def create_conf_file(self, directory, data=[]):
data.insert(0, "# this file is automatically created by setup.py")
if not directory:
@ -117,10 +123,8 @@ class MyDistribution(Distribution):
util.execute(write_file, (filename, data),
"creating %s" % filename, self.verbose>=1, self.dry_run)
def create_batch_file(self, directory, data):
filename = os.path.join(directory, "linkchecker.bat")
# write the batch file
def create_file(self, filename, data):
# write the file
util.execute(write_file, (filename, data),
"creating %s" % filename, self.verbose>=1, self.dry_run)