source: live-build/trunk/fuentes/scripts/build.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: 487 bytes
Line 
1#!/bin/sh
2
3if [ -e local/live-build ]
4then
5        LIVE_BUILD="${LIVE_BUILD:-${PWD}/local/live-build}"
6        PATH="${PWD}/local/live-build/scripts/build:${PATH}"
7        export LIVE_BUILD PATH
8fi
9
10# Source global functions
11for FUNCTION in "${LIVE_BUILD}"/functions/*.sh /usr/share/live/build/functions/*.sh
12do
13        if [ -e "${FUNCTION}" ]
14        then
15                . "${FUNCTION}"
16        fi
17done
18
19# Source local functions
20if ls local/functions/* > /dev/null 2>&1
21then
22        for FUNCTION in local/functions/*
23        do
24                . "${FUNCTION}"
25        done
26fi
Note: See TracBrowser for help on using the repository browser.