debian swirl logo

Back to the packages list diveintopython-zh

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

DEB_COMPRESS_EXCLUDE := .py -license

install/diveintopython-zh::
		install -d $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/
		install -d $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/examples/
		cp -r $(CURDIR)/html/  $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/
		cp -r $(CURDIR)/py/* $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/examples/
		find $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/examples/ -type f | xargs chmod -x
	perl -pi -e 's|href\= \"download/diveintopython-|href="http://www.woodpecker.org.cn/diveintopython/download/diveintopython-|' $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/html/index.html
		rm $(CURDIR)/debian/diveintopython-zh/usr/share/doc/diveintopython-zh/examples/LICENSE.txt

Builds:

diveintopython-zh
free python book for experienced programmers (zh translation)