~timrchavez/live-build/lb-sg-2.x-add-suppport-for-pxz

« back to all changes in this revision

Viewing changes to scripts/build.sh

  • Committer: Daniel Baumann
  • Date: 2011-03-09 18:17:15 UTC
  • Revision ID: daniel@debian.org-20110309181715-2s6s9tqa8xup5aep
Rearranging helpers scripts in source tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
LH_BASE="${LH_BASE:-/usr/share/live-helper}"
 
4
 
 
5
# Source global functions
 
6
for FUNCTION in "${LH_BASE}"/functions/*.sh
 
7
do
 
8
        . "${FUNCTION}"
 
9
done
 
10
 
 
11
# Source local functions
 
12
if ls auto/functions/* > /dev/null 2>&1
 
13
then
 
14
        for FUNCTION in auto/functions/*
 
15
        do
 
16
                . "${FUNCTION}"
 
17
        done
 
18
fi