#! /bin/sh -e ## dont-delete-debian.dpatch by Andres Salomon ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Description: don't delete debian directory if debian/official exists ## DP: Patch author: Andres Salomon ## DP: Upstream status: unsubmitted . $(dirname $0)/DPATCH @DPATCH@ --- orig/scripts/package/Makefile 2004-08-14 14:59:44.000000000 -0400 +++ mod/scripts/package/Makefile 2004-08-14 15:00:55.000000000 -0400 @@ -77,7 +77,7 @@ $(MAKE) $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb -clean-rule += && rm -rf $(objtree)/debian/ +clean-rule += && test -f $(objtree)/debian/official || rm -rf $(objtree)/debian/ # Help text displayed when executing 'make help'