mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
build.sh: clean-target: also clean host and staging
This commit is contained in:
parent
f13f421902
commit
9d871ba6dc
17
build.sh
17
build.sh
@ -62,14 +62,23 @@ elif [ "$target" == "mkrelease" ]; then
|
|||||||
echo "your gz image is ready at $basedir/$osname-$board-$osversion.img.gz"
|
echo "your gz image is ready at $basedir/$osname-$board-$osversion.img.gz"
|
||||||
|
|
||||||
elif [ "$target" == "clean-target" ]; then
|
elif [ "$target" == "clean-target" ]; then
|
||||||
|
if [ -d $outputdir/target ]; then
|
||||||
|
echo "removing target directory"
|
||||||
|
rm -rf $outputdir/target/*
|
||||||
|
|
||||||
|
echo "removing staging directory"
|
||||||
|
rm -rf $outputdir/staging/*
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d $outputdir/build ]; then
|
if [ -d $outputdir/build ]; then
|
||||||
echo "removing .stamp_target_installed files"
|
echo "removing .stamp_target_installed files"
|
||||||
find $outputdir/build -name .stamp_target_installed | xargs -r rm
|
find $outputdir/build -name .stamp_target_installed | xargs -r rm
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d $outputdir/target ]; then
|
echo "removing .stamp_staging_installed files"
|
||||||
echo "removing target directory"
|
find $outputdir/build -name .stamp_staging_installed | xargs -r rm
|
||||||
rm -rf $outputdir/target
|
|
||||||
|
echo "removing .stamp_host_installed files"
|
||||||
|
find $outputdir/build -name .stamp_host_installed | xargs -r rm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "target is clean"
|
echo "target is clean"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user