Bonjour,

Dh_clean  me supprime bien tous les fichiers installés avec dh_* sauf
les pages de manuel en français (ce sont les seules que j'ai pour le
moment qui ne soient pas en anglais).

Je fais une erreur qui vient de moi ou un bogue ?

J'ai mis en fichier joint le rules que j'utilise, si je supprime les boucles
dans la cible clean, il ne supprime pas les pages traduites.


Nicolas B.
-- 
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# This is the debhelper compatability version to use.
export DH_COMPAT=3

package   := l10n-check-rules
manpages  := 5
languages := fr
rulesdir  := usr/share/l10n-check/rules

configure: configure-stamp
configure-stamp:
        dh_testdir
        touch configure-stamp

build: build-stamp
build-stamp:
        dh_testdir
        set -ex;\
        for i in $(manpages); do\
                pod2man --section=$$i $(package).$$i.pod > $(package).$$i;\
                for lang in $(languages); do\
                        if test -e $(package).$$lang.$$i.pod; then\
                                pod2man --section=$$i $(package).$$lang.$$i.pod 
> $(package).$$lang.$$i;\
                        fi\
                done\
        done
        touch build-stamp

clean:
        dh_testdir
        dh_testroot
        set -ex;\
        for i in $(manpages); do\
                rm -f $(package).$$i;\
                for lang in $(languages); do\
                        if test -e $(package).$$lang.$$i; then\
                                rm -f $(package).$$lang.$$i;\
                        fi\
                done\
        done
        dh_clean build-stamp configure-stamp

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs -A $(rulesdir)

        # copy rules
        set -ex;\
        for i in rules/*; do\
                cp -a $$i debian/$(package)/$(rulesdir);\
        done;\
        for lang in $(languages); do\
                for i in rules-$$lang/*; do\
                        cp -a $$i debian/$(package)-$$lang/$(rulesdir);\
                done;\
        done



# Build architecture-independent files here.
binary-indep: build install
        dh_testdir -A
        dh_testroot -A
#       dh_installdebconf -A
        dh_installdocs -A
        dh_installexamples -A
#       dh_installmenu -A
#       dh_installlogrotate -A
#       dh_installemacsen -A
#       dh_installpam -A
#       dh_installmime -A
#       dh_installinit -A
#       dh_installcron -A
        set -ex;\
        for i in $(manpages); do\
                dh_installman $(package).$$i;\
                for lang in $(languages); do\
                        if test -e $(package).$$lang.$$i; then\
                                dh_installman --package=$(package)-$$lang 
$(package).$$lang.$$i;\
                        else\
                                dh_installman --package=$(package)-$$lang 
$(package).$$i;\
                        fi\
                done\
        done
        dh_installinfo -A
#       dh_undocumented -A
        dh_installchangelogs -A
        dh_link -A
        dh_strip -A
        dh_compress -A
        dh_fixperms -A
#       dh_makeshlibs -A
        dh_installdeb -A
#       dh_perl -A
        dh_shlibdeps -A
        dh_gencontrol -A
        dh_md5sums -A
        dh_builddeb -A

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

Répondre à