xref: /aoo42x/main/sal/qa/helper/gcov/gcov_all (revision e4af8f11)
1*e4af8f11SPedro Giffuni#!/bin/sh
2cdf0e10cSrcweir# $Id: gcov_all,v 1.4 2005-11-02 17:23:43 kz Exp $
3cdf0e10cSrcweir# This helper run lists all c and cxx files from selected directories.
4cdf0e10cSrcweir
5cdf0e10cSrcweir# PRJ points to the flat project directory
6cdf0e10cSrcweirPRJ='../../..'
7cdf0e10cSrcweir
8cdf0e10cSrcweir# selected directories
9cdf0e10cSrcweirFILES=`/bin/ls $PRJ/osl/unx/*.c $PRJ/osl/unx/*.cxx $PRJ/rtl/source/*.c $PRJ/rtl/source/*.cxx $PRJ/osl/all/*.c $PRJ/osl/all/*.cxx $PRJ/textenc/*.c`
10cdf0e10cSrcweir
11cdf0e10cSrcweir# Use gcov_filter on every c/cxx file.
12cdf0e10cSrcweirfor file in $FILES; do
13cdf0e10cSrcweir    # echo $file
14cdf0e10cSrcweir    perl gcov_filter.pl -o $PRJ/unxlngi6/slo -i $PRJ/util/sal.map $file $*
15cdf0e10cSrcweirdone
16