documentation

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2146 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-01-17 11:38:40 +00:00
parent 6e4312eec9
commit c1ced984da
2 changed files with 10 additions and 5 deletions

View file

@ -60,7 +60,7 @@ def do_install ():
def create_shortcuts ():
"""Create program shortcuts"""
"""Create program shortcuts."""
dest_dir = get_dest_dir()
try:
os.mkdir(dest_dir)
@ -88,7 +88,7 @@ def create_shortcuts ():
def fix_configdata ():
"""fix install and config paths in the config file"""
"""Fix install and config paths in the config file."""
name = "_linkchecker_configdata.py"
conffile = os.path.join(sys.prefix, "Lib", "site-packages", name)
lines = []
@ -101,7 +101,7 @@ def fix_configdata ():
f.write("".join(lines))
f.close()
# windows install scheme for python >= 2.3
# windows install path scheme for python >= 2.3
# snatched from PC/bdist_wininst/install.c
# this is used to fix install_* paths when cross compiling for windows
win_path_scheme = {
@ -117,7 +117,7 @@ win_path_scheme = {
def fix_install_path (line):
"""Replace placeholders written by bdist_wininst with those specified
in win_path_scheme."""
in windows install path scheme."""
key, eq, val = line.split()
# unescape string (do not use eval())
val = val[1:-1].replace("\\\\", "\\")
@ -134,4 +134,7 @@ if __name__ == '__main__':
if "-install" == sys.argv[1]:
do_install()
elif "-remove" == sys.argv[1]:
# nothing to do since the crated shortcuts are automatically
# removed
pass

View file

@ -1,5 +1,7 @@
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
# 'brp-compress' compresses the man pages without distutils knowing...
# 'brp-compress' compresses the manpages without distutils knowing.
# The sed scripts append ".gz" resp. ".bz2" suffixes to the affected
# manpage filenames.
if [ -n "$( ls $RPM_BUILD_ROOT/usr/share/man/man*/*.bz2 2>/dev/null )" ]; then
sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.bz2@g' INSTALLED_FILES
sed -i -e 's@man/de/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/de/man\1/\2.bz2@g' INSTALLED_FILES