add brew cleanup
This commit is contained in:
parent
abce563023
commit
57df5705d4
16
builder
16
builder
@ -300,6 +300,19 @@ function brewed ()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function brew_cleanup ()
|
||||||
|
{
|
||||||
|
for Package in $PackageBuildOrder
|
||||||
|
do
|
||||||
|
if ! echo "$PackageUpload" | grep -Pq "(^|\s+)$Package(\s+|$)"; then
|
||||||
|
find "$KFPublishBrewedPC" -type f -name "$Package.u" -delete
|
||||||
|
find "$MutSource/$Package" -type f -name '*.upk' -printf "%f\n" | xargs -I{} find "$KFPublishBrewedPC" -type f -name {} -delete
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
rm -f "$KFPublishBrewedPC"/*.tmp
|
||||||
|
find "$KFPublishBrewedPC" -type d -empty -delete
|
||||||
|
}
|
||||||
|
|
||||||
function brew ()
|
function brew ()
|
||||||
{
|
{
|
||||||
local PID=""
|
local PID=""
|
||||||
@ -324,8 +337,7 @@ function brew ()
|
|||||||
done
|
done
|
||||||
|
|
||||||
publish_common
|
publish_common
|
||||||
|
brew_cleanup
|
||||||
rm -f "$KFPublishBrewedPC"/*.tmp # cleanup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function brew_manual ()
|
function brew_manual ()
|
||||||
|
Loading…
Reference in New Issue
Block a user