mirror of
https://github.com/YunoHost/cd_build.git
synced 2024-09-03 20:06:24 +02:00
Remove tmp before each build
This commit is contained in:
parent
c30a2bf6f0
commit
9bc8fda593
1 changed files with 3 additions and 2 deletions
|
@ -30,6 +30,7 @@ function build
|
||||||
YNH_VERSION=$(grep "^Package: yunohost$" --after-context=1 Packages | grep "Version" | awk '{print $2;}')
|
YNH_VERSION=$(grep "^Package: yunohost$" --after-context=1 Packages | grep "Version" | awk '{print $2;}')
|
||||||
rm Packages
|
rm Packages
|
||||||
|
|
||||||
|
rm -f images/yunohost-$DEB_DIST-$YNH_VERSION-$ARCH-$DIST.iso
|
||||||
$(pwd)/add-firmware-to images/debian-$DEBNUM-$ARCH-CD-1.iso images/yunohost-$DEB_DIST-$YNH_VERSION-$ARCH-$DIST.iso $DEB_DIST
|
$(pwd)/add-firmware-to images/debian-$DEBNUM-$ARCH-CD-1.iso images/yunohost-$DEB_DIST-$YNH_VERSION-$ARCH-$DIST.iso $DEB_DIST
|
||||||
rm images/debian-$DEBNUM-$ARCH-CD-1.iso
|
rm images/debian-$DEBNUM-$ARCH-CD-1.iso
|
||||||
rm images/debian-$DEBNUM-$ARCH-CD-1.list.gz
|
rm images/debian-$DEBNUM-$ARCH-CD-1.list.gz
|
||||||
|
@ -47,13 +48,13 @@ function sign
|
||||||
|
|
||||||
function build_and_sign
|
function build_and_sign
|
||||||
{
|
{
|
||||||
|
rm -r $(pwd)/tmp
|
||||||
|
|
||||||
local ARCH="$1"
|
local ARCH="$1"
|
||||||
build $ARCH
|
build $ARCH
|
||||||
sign $ARCH
|
sign $ARCH
|
||||||
}
|
}
|
||||||
|
|
||||||
rm -r $(pwd)/tmp
|
|
||||||
|
|
||||||
DIST="${2:-stable}"
|
DIST="${2:-stable}"
|
||||||
DEB_DIST="${3:-$DEFAULT_DEB_DIST}"
|
DEB_DIST="${3:-$DEFAULT_DEB_DIST}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue