Do not clean some config* files when we're in a git repository
authorRaphaël Hertzog <hertzog@debian.org>
Fri, 8 Feb 2013 16:59:18 +0000 (17:59 +0100)
committerRaphaël Hertzog <hertzog@debian.org>
Fri, 8 Feb 2013 16:59:18 +0000 (17:59 +0100)
Otherwise git-buildpackage is not happy.

debian/rules

index e688498..9d7c1e2 100755 (executable)
@@ -61,8 +61,11 @@ clean:
        [ ! -f Makefile ] || $(MAKE) distclean 
        rm -f rdps wireshark.1 tshark.1 idl2deb.1 wireshark-filter.4 asn2deb.1 dumpcap.1 rawshark.1
        rm -f conftest conftest.c
-       rm -f config.guess config.sub config.log
-       rm -f config.h.in config.h configure
+       rm -f config.log
+       rm -f config.h
+       if [ ! -e .git ]; then \
+           rm -f config.guess config.sub configure config.h.in; \
+       fi
 
        dh_clean