source: live-build/trunk/fuentes/functions/templates.sh @ 900

Last change on this file since 900 was 900, checked in by kbut, 4 years ago

add original source

  • Property svn:executable set to *
File size: 651 bytes
Line 
1#!/bin/sh
2
3## live-build(7) - System Build Scripts
4## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
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.
9
10
11Check_templates ()
12{
13        PACKAGE="${1}"
14
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
24        fi
25}
Note: See TracBrowser for help on using the repository browser.