Making check target in manpages makefile comply with the rest.
[debian-live-build.git] / functions / templates.sh
blobd74c943a18949860e218110d2d8b6095016dfbcf
1 #!/bin/sh
3 ## live-build(7) - System Build Scripts
4 ## Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
5 ##
6 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7 ## This is free software, and you are welcome to redistribute it
8 ## under certain conditions; see COPYING for details.
11 Check_templates ()
13 PACKAGE="${1}"
15 if [ -d "config/templates/${PACKAGE}" ]
16 then
17 TEMPLATES="config/templates/${PACKAGE}"
18 elif [ -d "${LB_TEMPLATES}/${PACKAGE}" ]
19 then
20 TEMPLATES="${LB_TEMPLATES}/${PACKAGE}"
21 else
22 Echo_error "%s templates not accessible in %s nor config/templates" "${PACKAGE}" "${LB_TEMPLATES}"
23 exit 1