source: live-build/trunk/fuentes/scripts/build/lb_binary_includes @ 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: 1.3 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# Setting static variables
17DESCRIPTION="$(Echo 'copy files into binary')"
18HELP=""
19USAGE="${PROGRAM} [--force]"
20
21Arguments "${@}"
22
23# Reading configuration files
24Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
25Set_defaults
26
27Echo_message "Begin copying binary includes..."
28
29# Requiring stage file
30Require_stagefile .build/config .build/bootstrap
31
32# Checking stage file
33Check_stagefile .build/includes.binary
34
35# Checking lock file
36Check_lockfile .lock
37
38# Creating lock file
39Create_lockfile .lock
40
41if Find_files config/includes.binary/
42then
43        # Copying includes
44        cd config/includes.binary
45        find . | cpio -dmpu --no-preserve-owner "${OLDPWD}"/binary
46        cd "${OLDPWD}"
47
48        # Removing symlinks
49        case "${LB_BINARY_IMAGES}" in
50                hdd*)
51                        find binary -type l | xargs rm -f
52                        ;;
53        esac
54
55        # Creating stage file
56        Create_stagefile .build/binary_includes
57fi
Note: See TracBrowser for help on using the repository browser.