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

« back to all changes in this revision

Viewing changes to scripts/build/source

  • 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_source(1) - build source images
 
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
 
5
#
 
6
# live-helper 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
set -e
 
11
 
 
12
# Including common functions
 
13
. "${LH_BASE:-/usr/share/live-helper}"/scripts/build.sh
 
14
 
 
15
# Setting static variables
 
16
DESCRIPTION="$(Echo 'build source images')"
 
17
HELP=""
 
18
USAGE="${PROGRAM} [--force]"
 
19
 
 
20
Arguments "${@}"
 
21
 
 
22
# Reading configuration files
 
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
 
24
Set_defaults
 
25
 
 
26
Require_stagefile .stage/chroot_install-packages
 
27
 
 
28
# Setup cleanup function
 
29
Setup_cleanup
 
30
 
 
31
# Enabling network in chroot
 
32
lh chroot_hosts install ${*}
 
33
lh chroot_resolv install ${*}
 
34
lh chroot_hostname install ${*}
 
35
lh chroot_sources install ${*}
 
36
 
 
37
# Preparing images
 
38
lh source_debian-live ${*}
 
39
lh source_debian ${*}
 
40
lh source_disk ${*}
 
41
lh source_checksums ${*}
 
42
 
 
43
# Building images
 
44
lh source_iso ${*}
 
45
lh source_net ${*}
 
46
lh source_tar ${*}
 
47
lh source_usb ${*}
 
48
lh source_virtual-hdd ${*}
 
49
 
 
50
# Deconfiguring chroot
 
51
rm -f .stage/chroot_sources
 
52
lh chroot_hostname remove ${*}
 
53
lh chroot_resolv remove ${*}
 
54
lh chroot_hosts remove ${*}