]> spindle.queued.net Git - midori/commitdiff
if there isn't a config file for a distribution, use Debians
authorRyan Niebur <ryanryan52@gmail.com>
Fri, 29 May 2009 08:12:09 +0000 (01:12 -0700)
committerRyan Niebur <ryanryan52@gmail.com>
Fri, 29 May 2009 08:12:09 +0000 (01:12 -0700)
debian/rules

index 1f9544f48622a1726e7d9c30fffeccc1ebbf1613..c9ea3429168fcc8d958d6ace109ce125fb7bebfc 100755 (executable)
@@ -2,7 +2,11 @@
 
 CMD=$(shell echo $@ | sed 's/override_//')
 
-CONFIG_FILE=debian/config/$(shell lsb_release -is).h
+DISTRO=$(shell lsb_release -is)
+CONFIG_FILE=debian/config/$(DISTRO).h
+ifneq (0, $(shell test -e $(CONFIG_FILE); echo "$$?"))
+       CONFIG_FILE=debian/config/Debian.h
+endif
 
 %:
        dh --with quilt $@