On Mon, Jun 19, 2006 at 09:59:40AM -0400, Justin Pryzby wrote:
> > Do you just have to hardcode all the "patch" commands into
> > debian/rules?
> Some people do this ("cat debian/patches/* |patch -p1 && touch
> ./patched"), but it is generally not encouraged.  In particular,
> related patches need to have an ordering applied, and "cat *" can't
> guarantee that ordering with eg. reiserfs.  You could use ls |sort but
> at that point you might as well just do it the right way..

For me this works just fine

 patch: patch-stamp
 patch-stamp:
        for i in `ls -1 debian/diff/*.diff || :`; do \
          patch -p1 <$$i || exit 1; \
        done
        touch patch-stamp
 clean:
        ...
        
        ! test -e patch-stamp || \
           for i in `ls -1r debian/diff/*.diff || :`; do patch -p1 -R <$$i; done
        rm -f patch-stamp

 .PHONY: patch

Regards, Gerrit.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to