X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=debian%2Frules;h=2260c614e0555740691969b4fbe90712f808645e;hb=5b25ff5fd3b9b003388d17dc15434d92b287a647;hp=7cf9a2fa990c276d7369b2a8e4e10291b34696e1;hpb=84591f970383b2e9cbca73c6ac01d64b4de71e69;p=filters.git diff --git a/debian/rules b/debian/rules index 7cf9a2f..2260c61 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,4 @@ #!/usr/bin/make -f -# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# This is the debhelper compatibility version to use. -export DH_COMPAT=2 build: build-stamp build-stamp: @@ -21,25 +14,15 @@ clean: -$(MAKE) -i clean dh_clean -# Build architecture-independent files here. binary-indep: build -# We have nothing to do by default. -# Build architecture-dependent files here. binary-arch: build -# dh_testversion dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) PREFIX=debian/filters install - dh_installdocs README SAMPLES - dh_installexamples - dh_installmenu -# dh_installinit - dh_installcron - dh_installmanpages -# dh_undocumented + dh_installdocs README SAMPLES ky00te.dir/README.ky00te dh_installchangelogs dh_strip dh_compress @@ -47,9 +30,20 @@ binary-arch: build dh_installdeb dh_shlibdeps dh_gencontrol -# dh_makeshlibs dh_md5sums dh_builddeb +VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)') + +# Update the web page. Not intended for use by anyone except the +# author. +DIR=/home/web/kitenet.net/programs/filters +installhook: + cp debian/changelog $(DIR)/CHANGES + cp TODO $(DIR)/TODO + echo -n $(VERSION) > $(DIR)/LATEST-VERSION-IS + rm -f $(DIR)/*.tar.gz + ln -s /home/joey/lib/debian/unstable/filters_$(VERSION).tar.gz $(DIR)/filters-$(VERSION).tar.gz + binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary