Index: debian/rules =================================================================== --- debian/rules (.../anbe-320-legacy-support-5-control) (revision 2436) +++ debian/rules (.../anbe-325-conditional-overrides) (revision 2436) @@ -153,6 +153,8 @@ -e 's{#LEGACY#}{$(legacy)}g;' \ -e 's{#URL_X86#}{$(url_x86)}g;' \ -e 's{#URL_X86_64#}{$(url_x86_64)}g;' \ + -e 's{#!i386#}{$(if $(filter i386,$(DEB_BUILD_ARCH)),#)}g;' \ + -e 's{#!amd64#}{$(if $(filter amd64,$(DEB_BUILD_ARCH)),#)}g;' \ < $< > $@ debian/module/debian/changelog: debian/changelog Index: debian/changelog =================================================================== --- debian/changelog (.../anbe-320-legacy-support-5-control) (revision 2436) +++ debian/changelog (.../anbe-325-conditional-overrides) (revision 2436) @@ -144,6 +144,8 @@ add #LEGACY# * debian/rules: automatically rename control files when building legacy packages + * debian/rules: add new substitution placeholders #!i386#, #!amd64# that are + substituted with '#' on the respective architecture and '' elsewhere -- Russ Allbery Sat, 24 Apr 2010 20:35:20 -0700