save a copy of the dated dir that was copied to ftp server and remove any previously saved builds older than 7 days (granrose)

git-svn-id: svn://10.0.0.236/trunk@163981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cltbld 2004-10-18 21:57:15 +00:00
parent 11676a0962
commit 5e39785875

View File

@ -648,8 +648,11 @@ sub main {
return returnStatus("Pushing package $upload_directory failed", ("testfailed"));
}
if ($cachebuild) {
# remove saved builds older than a week and save current build
TinderUtils::run_shell_command "find $mozilla_build_dir -type d -name \"200*-*\" -prune -mtime +7 -print | xargs rm -rf";
TinderUtils::run_shell_command "cp -rdpf $upload_directory $mozilla_build_dir/$datestamp";
unlink "last-built";
open BLAH, ">last-built";
close BLAH;