blob: 650679a2e559405e8648836272fa0587887b50af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
#
# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# extract ipkg an generate a tgz image
#
ptxd_make_image_archive_impl() {
ptxd_make_image_init &&
ptxd_get_ipkg_files ${image_pkgs} &&
ptxd_make_image_extract_xpkg_files "${pkg_dir}" &&
cd "${pkg_dir}" &&
echo -e "\nCreating $(ptxd_print_path "${image_image}") ...\n" &&
tar -zcf "${image_image}" . &&
rm -r "${pkg_dir}"
}
export -f ptxd_make_image_archive_impl
ptxd_make_image_archive() {
fakeroot ptxd_make_image_archive_impl
}
export -f ptxd_make_image_archive
|