> Od: Felipe Sateler <fsate...@gmail.com>

RT> > The last consensus was that yes, under the condition that the clean
RT> > target of debian rules restores the working copy to a state that is
RT> > ready for git diff/commit operations. Most commongly this means to
RT> > unpatch in the clean target.

RT> > The intend behind this is to have the same workflow for both Format 1.0
RT> > and 3.0 packages.

FS> Be careful to only unapply patches when in a git repository! Otherwise
FS> you will get misterious FTBFS in the buildds.

FS> Also, you need to apply them in the build rule (again, only if in the
FS> git repository).

JM > So if I understand well something like this should be in short dh 7 rules
JM > file:
JM > override_dh_auto_clean:
JM >  unpatch
JM >  dh_auto_clean

FS > More. The unpatch should be done only if within a git repository.
FS > Something like:

FS > override_dh_auto_clean:
FS >   if [ -d .git ] ; then \
FS >     quilt pop -a \
FS >   fi
FS >   dh_auto_clean

I am trying use your script above, but getting this error:

$ git-buildpackage -S --git-ignore-new
dh --with quilt clean
   dh_testdir
   debian/rules override_dh_auto_clean
make[1]: Entering directory `/home/mira/zita-convolver2'
if [ -d .git ] ; then \
                quilt pop -a \
        fi
/bin/sh: Syntax error: end of file unexpected (expecting "fi")

Some syntax problem? I tried fix it by myself, but I am not good in scripting.
rules file is in attachment if you are interested.

regards

mira
#!/usr/bin/make -f

%:
        dh --with quilt $@

override_dh_auto_build:
        $(MAKE) -C libs/

override_dh_auto_clean:
        if [ -d .git ] ; then \
                quilt pop -a \
        fi
        dh_auto_clean
        $(MAKE) -C libs/ clean

override_dh_auto_install:
        $(MAKE) -C libs/  DESTDIR=$(CURDIR)/debian/tmp install
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to