source: live-build/trunk/fuentes/scripts/build/lb_source @ 900

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

add original source

  • Property svn:executable set to *
File size: 1.5 KB
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
11set -e
12
13# Including common functions
14( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || . /usr/lib/live/build.sh
15
16# Automatically populating config tree
17if [ -x auto/config ] && [ ! -e .build/config ]
18then
19        Echo_message "Automatically populating config tree."
20        lb config
21fi
22
23# Setting static variables
24DESCRIPTION="$(Echo 'build source images')"
25HELP=""
26USAGE="${PROGRAM} [--force]"
27
28Arguments "${@}"
29
30# Reading configuration files
31Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
32Set_defaults
33
34if [ "${LB_SOURCE}" != "true" ]
35then
36        exit 0
37fi
38
39#Require_stagefile
40
41# Setup cleanup function
42Setup_cleanup
43
44# Enabling network in chroot
45lb chroot_hosts install ${*}
46lb chroot_resolv install ${*}
47lb chroot_hostname install ${*}
48lb chroot_archives source install ${*}
49
50# Preparing images
51lb source_debian-live ${*}
52lb source_debian ${*}
53lb source_disk ${*}
54lb source_checksums ${*}
55
56# Building images
57lb source_iso ${*}
58lb source_tar ${*}
59lb source_hdd ${*}
60lb source_virtual-hdd ${*}
61
62# Deconfiguring chroot
63lb chroot_archives chroot remove ${*}
64lb chroot_hostname remove ${*}
65lb chroot_resolv remove ${*}
66lb chroot_hosts remove ${*}
Note: See TracBrowser for help on using the repository browser.