From b60cbae1757df367a1334f0a0a44567a2d70f01f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 19 May 2008 13:10:27 +0000 Subject: check that the target file exists before linking default backgrounds (useful if some res is not used for all themes) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cb8b8b2..d450fcc 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ install: install -m644 $$t/background/$$t.xml $(prefix)$(sharedir)/mdk/backgrounds/; \ for d in 1024x768 1280x1024 1280x800 1440x900 1600x1200 1680x1050 1920x1200 1920x1440 ; \ do \ - ln -f -s $$t-$$d-1300.jpg $(prefix)$(sharedir)/mdk/backgrounds/$$t-$$d.jpg; \ + [ -e $(prefix)$(sharedir)/mdk/backgrounds/$$t-$$d-1300.jpg ] && ln -f -s $$t-$$d-1300.jpg $(prefix)$(sharedir)/mdk/backgrounds/$$t-$$d.jpg; \ done; \ source $$t/bootsplash/colors; \ for d in 800x600 1024x768 1280x1024 1600x1200; \ -- cgit v1.2.1