dist fixes

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@155 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-09-10 14:53:52 +00:00
parent 8356871a97
commit 5465fd5119
4 changed files with 25 additions and 30 deletions

View file

@ -1,5 +1,5 @@
# This Makefile is only used by developers! No need for users to
# call make.
# This Makefile is only used by developers.
# You will need a Debian Linux system to use this Makefile!
VERSION=$(shell python setup.py --version)
PACKAGE = linkchecker
NAME = $(shell python setup.py --name)
@ -9,12 +9,7 @@ PROXY=--proxy= -itreasure.calvinsplayground.de -s
#HOST=fsinfo.cs.uni-sb.de
#PROXY=-Pwww-proxy.uni-sb.de:3128
LCOPTS=-ocolored -Ftext -Fhtml -Fgml -Fsql -Fcsv -R -t0 -v
DEBPACKAGE = ../$(PACKAGE)_$(VERSION)_i386.deb
SRCPACKAGE = dist/$(NAME)-$(VERSION).tar.gz
#RPMPATH=build/bdist.linux2/rpm
#RPMPACKAGE=$(RPMPATH)/RPMS/i386/$(PACKAGE)-$(VERSION)-1.i386.rpm
#SRPMPACKAGE=$(RPMPATH)/SRPMS/$(PACKAGE)-$(VERSION)-1.src.rpm
ALLPACKAGES = $(DEBPACKAGE) $(SRCPACKAGE) #$(RPMPACKAGE) $(SRPMPACKAGE)
DEBPACKAGE = $(PACKAGE)_$(VERSION)_i386.deb
SOURCES = \
linkcheck/Config.py.tmpl \
linkcheck/FileUrlData.py \
@ -50,34 +45,33 @@ all:
@echo "Read the file INSTALL to see how to build and install"
clean:
python setup.py clean --all
fakeroot debian/rules clean
distclean: clean
rm -rf dist
rm -f $(DEBPACKAGE) $(PACKAGE)-out.* $(TEMPLATEFILES) VERSION
rm -f $(PACKAGE)-out.* $(TEMPLATEFILES) VERSION
dist: mo
rm -rf debian/tmp
python setup.py sdist #bdist_rpm
python setup.py sdist bdist_rpm
fakeroot debian/rules binary
mv -f ../$(DEBPACKAGE) dist
packages: dist
rm -rf debian/tmp
cd .. && dpkg-scanpackages . $(PACKAGE)/override.txt | gzip --best > Packages.gz
package:
cd dist && dpkg-scanpackages . ../override.txt | gzip --best > Packages.gz
files:
./$(PACKAGE) $(LCOPTS) $(PROXY) -i$(HOST) http://$(HOST)/~calvin/
VERSION: setup.py
VERSION:
echo $(VERSION) > VERSION
upload: files packages VERSION
upload: files dist package VERSION
scp debian/changelog shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/changes.txt
scp linkchecker-out.* shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs
scp VERSION shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/raw/
scp $(DEBPACKAGE) ../Packages.gz shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/debian
ncftpput download.sourceforge.net /incoming $(ALLPACKAGES)
ssh -tC shell1.sourceforge.net "cd /home/groups/$(PACKAGE)/htdocs/raw && make"
scp dist/* shell1.sourceforge.net:/home/groups/ftp/pub/$(PACKAGE)/
ssh -tC shell1.sourceforge.net "cd /home/groups/$(PACKAGE) && make"
test:
rm -f test/*.result
@ -103,4 +97,3 @@ mo:
# french translation
msgfmt -o locale/fr/LC_MESSAGES/linkcheck.mo \
locale/fr/LC_MESSAGES/linkcheck.po

3
debian/changelog vendored
View file

@ -2,8 +2,11 @@ linkchecker (1.2.5) unstable; urgency=low
* fix /etc/resolv.conf parsing again (this time for real?)
* tuple param in DNS/Lib.py for Python 1.6 compatibility
(Adam Feuer <adamf@pobox.com>)
* adjust #! line in linkchecker script to correct python interpreter
(Adam Feuer <adamf@pobox.com>)
* proper proxy config handling
* distribution restructuring
-- Bastian Kleineidam <calvin@users.sourceforge.net> Sun, 10 Sep 2000 12:50:52 +0200

View file

@ -1,2 +1,2 @@
# override file for the Debian package tool dpkg-scanpackages
linkchecker optional web
linkchecker optional web

View file

@ -49,8 +49,10 @@ class LCDistribution(Distribution):
def check_ssl(self):
ok = 0
incldirs = self.get_build_ext().include_dirs+self.default_include_dirs
libdirs = self.get_build_ext().library_dirs+self.default_library_dirs
c = self.get_command_obj('build_ext')
c.ensure_finalized()
incldirs = c.include_dirs+self.default_include_dirs
libdirs = c.library_dirs+self.default_library_dirs
for d in incldirs:
if os.path.exists(os.path.join(d, "ssl.h")):
self.announce('Found %s/ssl.h' % d)
@ -61,21 +63,18 @@ class LCDistribution(Distribution):
ok = ok + 1
if ok==2:
self.announce("Enabling SSL compilation")
self.reinitialize_command(c)
self.ext_modules = [Extension('ssl', ['ssl.c'],
include_dirs=[incldirs],
library_dirs=[libdirs],
include_dirs=incldirs,
library_dirs=libdirs,
libraries=['ssl'])]
c.ensure_finalized()
else:
self.announce(
"""Some necessary SSL files are missing, disabling SSL compilation.
Use "python setup.py build_ext -I<inclpath> -L<libpath>"
where the path arguments point to your SSL installation.""")
def get_build_ext(self):
c = self.get_command_obj('build_ext')
c.ensure_finalized()
return c
def additional_things(self):
"""replace path names and program information in various files"""
self.announce("Filling template values.")