1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#!/usr/bin/make -f
# -*- makefile -*-
all:
echo "Nope. You must specify a target."
INSTALL = /usr/bin/install
SHELL = /bin/sh
DH_VERBOSE=0
export SHELL DH_VERBOSE
GIFS = $(wildcard icons_and_logos/*.gif)
d = debian/tmp
cvsweb_version = $(shell dpkg-parsechangelog 2>/dev/null \
| sed -n -e 's/^Version: \([[:digit:]]\+:\)*\(.*\)$$/\2/p')
define check_cvs_status
@if expr $(shell cvs status 2>/dev/null \
| grep '^File:' \
| grep -vc 'Up-to-date') \
'>' 0; \
then \
echo "There are uncommited changes."; \
exit 1; \
else \
exit 0; \
fi
endef
retag:
$(check_cvs_status)
-cvs tag -d upstream_version_$(cvsweb_version)
-cvs tag -d debian_version_$(cvsweb_version)
cvs tag upstream_version_$(cvsweb_version)
cvs tag debian_version_$(cvsweb_version)
release:
$(check_cvs_status)
cvs-buildpackage -rsudo
.PHONY: retag release
# --------------------------------------------------------------
build-stamp:
touch build-stamp
build: build-stamp
sed -e 's/@cvsweb_version@/$(cvsweb_version)-SPI/' < cvsweb.in > cvsweb
clean:
dh_testdir
dh_testroot
rm -f cvsweb
dh_clean build-stamp
binary-indep: build $(GIFS)
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(INSTALL) --owner=root --group=root --mode=0755 cvsweb $(d)/usr/lib/cgi-bin/
$(INSTALL) --owner=root --group=root --mode=0644 cvsweb.conf $(d)/etc/
$(INSTALL) --owner=root --group=root --mode=0644 $(GIFS) $(d)/usr/doc/cvsweb/
dh_installdocs README
dh_undocumented
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch:
true
binary: binary-indep
.PHONY: clean build binary-indep binary
|