3
# lh_source_tar(1) - build source tarball
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
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.
12
# Including common functions
13
. "${LH_BASE:-/usr/share/live-helper}"/scripts/build.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'build source tarball')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
if [ "${LH_SOURCE}" != "true" ]
31
if ! In_list tar "${LH_SOURCE_IMAGES}"
36
Echo_message "Begin building source tarball..."
37
Echo_message "This may take a while."
39
# Requiring stage file
40
Require_stagefile .stage/config .stage/source_debian
43
Check_stagefile .stage/source_tar
52
rm -f source.debian.tar.gz
53
rm -f source.debian-live.tar.gz
56
tar cf source.debian.tar source/debian
57
gzip ${GZIP_OPTIONS} source.debian.tar
59
tar cf source.debian-live.tar source/debian-live
60
gzip ${GZIP_OPTIONS} source.debian-live.tar
63
Create_stagefile .stage/source_tar