archive file list name start from './'
This commit is contained in:
parent
342d77c987
commit
34537bd30b
6
makedeb
6
makedeb
|
@ -93,11 +93,9 @@ function generate_deb {
|
||||||
local control_tgz="${tmpdir}/control.tar.gz"
|
local control_tgz="${tmpdir}/control.tar.gz"
|
||||||
local debian_binary="${tmpdir}/debian-binary"
|
local debian_binary="${tmpdir}/debian-binary"
|
||||||
|
|
||||||
find "${pkgdir}" -mindepth 1 -maxdepth 1 -not -path "${pkgdir}/DEBIAN*" -printf "%P\n" |
|
tar --exclude="./DEBIAN" -C "${pkgdir}" -cf "${data_tgz}" .
|
||||||
tar -czf "${data_tgz}" -C "${pkgdir}" -T -
|
|
||||||
|
|
||||||
find "${pkgdir}/DEBIAN" -mindepth 1 -maxdepth 1 -printf "%P\n" |
|
tar -C "${pkgdir}/DEBIAN" -cf "${control_tgz}" .
|
||||||
tar -czf "${control_tgz}" -C "${pkgdir}/DEBIAN" -T -
|
|
||||||
|
|
||||||
echo 2.0 > "${debian_binary}"
|
echo 2.0 > "${debian_binary}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue