make the subarch variable not empty

svn path=/trunk/kernel/source/linux-kernel-2.6.12/; revision=3460
This commit is contained in:
Andres Salomon 2005-07-11 04:40:06 +00:00
parent 06ac3d1701
commit 9f5c10e175
1 changed files with 4 additions and 1 deletions

5
debian/rules vendored
View File

@ -224,11 +224,14 @@ archs := $(shell find debian/arch/ -mindepth 1 -maxdepth 1 -type d ! -name '.svn
debian/control: debian/templates/control.main.in
rm -f control.tmp 2>/dev/null
substitute() { \
sa_tmp="debian/arch/$$2/*/config.$$3"; \
sa=""; \
[ -f $$sa_tmp ] && sa=$$(basename $$(dirname $$sa_tmp)); \
cat debian/templates/control.$$1 | \
sed -e 's/@version@/$(version)/g' \
-e 's/@major@/$(major)/g' \
-e "s/@arch@/$$2/g" \
-e 's/@subarch@//g' \
-e "s/@subarch@/$$sa/g" \
-e "s/@flavour@/$$3/g" \
-e 's/@ltver@/$(ltver)/g' \
-e 's/@srcver@/$(srcver)/g' \