diff --git a/debian/rules b/debian/rules index fa682da94..354fe5dd1 100755 --- a/debian/rules +++ b/debian/rules @@ -28,8 +28,7 @@ lt_provides := $(shell seq -f 'linux-tree-$(version)-%g' -s ', ' 1 $(ltver)) ifndef subarchs subarchs := $(shell find debian/arch/$(karch) \ -type d -mindepth 1 -maxdepth 1 \ - ! -name '.svn' ! -name 'patches' \ - -printf '%f\n') + ! -name '.svn' -printf '%f\n') endif ifeq (,$(subarchs)) subarchs := none @@ -112,15 +111,12 @@ ppkg := linux-patch-debian-$(version) pbase := /usr/src/linux-patches/all/$(version) pfull := debian/$(ppkg)$(pbase) pdirs := $(pbase) $(pbase)/apply $(pbase)/debian $(pbase)/unpatch -pdirs += $(pbase)/debian/series patch-debian: debian/patch-debian-stamp debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch dh_testdir dh_testroot dh_installdirs -p$(ppkg) $(pdirs) dh_install -p$(ppkg) debian/patches/* $(pbase)/debian -# Compatibility symlink - dh_link -p$(ppkg) /usr/src/linux-patches /usr/src/kernel-patches sed 's/@version@/$(release)/g' debian/bin/apply > $(pfull)/apply/debian sed 's/@upstream@/$(version)/g' debian/bin/unpatch > $(pfull)/unpatch/debian chmod a+x $(pfull)/apply/debian $(pfull)/unpatch/debian