ReleaseEngineering/UsefulTricks: Difference between revisions
Jump to navigation
Jump to search
(New page: * Machine comparison logfile=fx-mac-1.9-slave1 set > $logfile # create a sha1sum for every file on the path echo >> $logfile; echo PATH: >> $logfile (dirs=`echo $PATH | sed 's/:/ /g'`;...) |
No edit summary |
||
| Line 8: | Line 8: | ||
* Remove SeaMonkey nightly l10n builds (cltbld@stage) | * Remove SeaMonkey nightly l10n builds (cltbld@stage) | ||
cd /pub/mozilla.org/seamonkey/nightly/2008/ | cd /pub/mozilla.org/seamonkey/nightly/2008/ | ||
find 06 -type f ! -name '*en-US*' -ls | grep trunk | grep -v xpi | awk '{sum+=$7; printf("%9s %s\n",$7,$11)} END{ print sum/1024/ | find 06 -type f ! -name '*en-US*' -ls | grep trunk | grep -v xpi | awk '{sum+=$7; printf("%9s %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~/cf/remove_seamonkey_l10n/2008-06 | less | ||
find 06 -type f ! -name '*en-US*' | grep trunk | grep -v xpi | xargs rm -v | tee -a ~/cf/remove_seamonkey_l10n/2008-06 | find 06 -type f ! -name '*en-US*' | grep trunk | grep -v xpi | xargs rm -v | tee -a ~/cf/remove_seamonkey_l10n/2008-06 | ||
* Remove old complete mar files | |||
cd /pub/mozilla.org/firefox/nightly/2008/ | |||
find 01 -name '*complete.mar' -ls | grep -E '(mozilla1.8.0|mozilla1.8|trunk|mozilla1.9.0|mozilla-central|action-monkey)/' | awk '{sum+=$7; printf("%9s %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~/cf/remove_mars/fx-2008-01 | |||
find 01 -name '*complete.mar' | grep -E '(mozilla1.8.0|mozilla1.8|trunk|mozilla1.9.0|mozilla-central|action-monkey)/' | xargs rm -v | tee -a ~/cf/remove_mars/fx-2008-01 | |||
Revision as of 10:42, 1 July 2008
- Machine comparison
logfile=fx-mac-1.9-slave1 set > $logfile # create a sha1sum for every file on the path echo >> $logfile; echo PATH: >> $logfile (dirs=`echo $PATH | sed 's/:/ /g'`; for dir in $dirs; do if '.' != $dir ; then find $dir -maxdepth 1 ! -type d | perl -nle 'system("openssl","dgst","-sha1",$_)'; fi; done) 2>&1 | tee -a $logfile # for Windows, sha1sum every file on INCLUDE echo >> $logfile; echo INCLUDE: >> $logfile (dirs=`echo $INCLUDE | sed 's/;/ /g'`; for dir in $dirs; do if '.' != $dir ; then find $dir -maxdepth 1 ! -type d | perl -nle 'system("openssl","dgst","-sha1",$_)'; fi; done) 2>&1 | tee -a $logfile
- Remove SeaMonkey nightly l10n builds (cltbld@stage)
cd /pub/mozilla.org/seamonkey/nightly/2008/
find 06 -type f ! -name '*en-US*' -ls | grep trunk | grep -v xpi | awk '{sum+=$7; printf("%9s %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~/cf/remove_seamonkey_l10n/2008-06 | less
find 06 -type f ! -name '*en-US*' | grep trunk | grep -v xpi | xargs rm -v | tee -a ~/cf/remove_seamonkey_l10n/2008-06
- Remove old complete mar files
cd /pub/mozilla.org/firefox/nightly/2008/
find 01 -name '*complete.mar' -ls | grep -E '(mozilla1.8.0|mozilla1.8|trunk|mozilla1.9.0|mozilla-central|action-monkey)/' | awk '{sum+=$7; printf("%9s %s\n",$7,$11)} END{ print sum/1024/1024," MB to be saved"}' | tee ~/cf/remove_mars/fx-2008-01
find 01 -name '*complete.mar' | grep -E '(mozilla1.8.0|mozilla1.8|trunk|mozilla1.9.0|mozilla-central|action-monkey)/' | xargs rm -v | tee -a ~/cf/remove_mars/fx-2008-01