mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +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"
|
||||
|
||||
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
|
||||
echo "removing .stamp_target_installed files"
|
||||
find $outputdir/build -name .stamp_target_installed | xargs -r rm
|
||||
fi
|
||||
|
||||
if [ -d $outputdir/target ]; then
|
||||
echo "removing target directory"
|
||||
rm -rf $outputdir/target
|
||||
echo "removing .stamp_staging_installed files"
|
||||
find $outputdir/build -name .stamp_staging_installed | xargs -r rm
|
||||
|
||||
echo "removing .stamp_host_installed files"
|
||||
find $outputdir/build -name .stamp_host_installed | xargs -r rm
|
||||
fi
|
||||
|
||||
echo "target is clean"
|
||||
|
Loading…
x
Reference in New Issue
Block a user