debian/rules: Use make instead of shell magic for control check.
svn path=/dists/trunk/linux-2.6/; revision=9626
This commit is contained in:
parent
116b9b64a2
commit
ed1ce90bd4
|
@ -74,19 +74,15 @@ binary: binary-indep binary-arch
|
|||
CONTROL_FILES = debian/changelog $(wildcard debian/templates/*.in)
|
||||
CONTROL_FILES += debian/config/defines $(wildcard debian/config/*/defines) $(wildcard debian/config/*/*/defines)
|
||||
debian/control debian/rules.gen: debian/bin/gencontrol.py $(CONTROL_FILES)
|
||||
if [ -f debian/control.md5sum ]; then \
|
||||
if [ "$(VERSION_DEBIAN_BINNMU)" ]; then \
|
||||
if ! grep -v debian/changelog debian/control.md5sum | md5sum --check - --status; then \
|
||||
$(MAKE) -f debian/rules debian/control-real; \
|
||||
fi \
|
||||
else \
|
||||
if ! md5sum --check debian/control.md5sum --status; then \
|
||||
$(MAKE) -f debian/rules debian/control-real; \
|
||||
fi \
|
||||
fi \
|
||||
else \
|
||||
$(MAKE) -f debian/rules debian/control-real; \
|
||||
fi
|
||||
ifeq ($(wildcard debian/control.md5sum),)
|
||||
$(MAKE) -f debian/rules debian/control-real
|
||||
else ifeq ($(VERSION_DEBIAN_BINNMU),)
|
||||
md5sum --check debian/control.md5sum --status || \
|
||||
$(MAKE) -f debian/rules debian/control-real
|
||||
else
|
||||
grep -v debian/changelog debian/control.md5sum | md5sum --check - --status || \
|
||||
$(MAKE) -f debian/rules debian/control-real
|
||||
endif
|
||||
|
||||
debian/control-real: debian/bin/gencontrol.py $(CONTROL_FILES)
|
||||
chmod +x $<
|
||||
|
|
Loading…
Reference in New Issue