/core/externals/google-toolbox-for-mac/XcodePlugin/Resources/ResetGCov.applescript

http://macfuse.googlecode.com/ · AppleScript · 32 lines · 5 code · 2 blank · 25 comment · 0 complexity · e8f8947cadebdccef8be06bbadca0495 MD5 · raw file

  1. (*
  2. ResetGCov.applescript
  3. Copyright 2007-2009 Google Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. use this file except in compliance with the License. You may obtain a copy
  6. of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  10. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  11. License for the specific language governing permissions and limitations under
  12. the License.
  13. Support script for using gcov with Xcode
  14. *)
  15. (*
  16. gets passed a list of args from Xcode
  17. only arg is the dir to clean under
  18. *)
  19. on run args
  20. -- get our dir to clean
  21. set cleanDir to item 1 of args
  22. -- get rid of all our gcov data files
  23. set shellScript to "find " & quoted form of (cleanDir) & " -name \"*.gcda\" -print0 | /usr/bin/xargs -0 /bin/rm -f"
  24. do shell script shellScript
  25. end run