~ubuntu-branches/debian/sid/clamav/sid

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/utils/llvmgrep

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun, Andreas Cadhalpun, Sebastian Andrzej Siewior, Frans Spiesschaert
  • Date: 2014-10-15 06:50:20 UTC
  • mfrom: (1.3.13) (42.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20141015065020-0cpy1hdueggaw35s
Tags: 0.98.5~rc1+dfsg-1
[ Andreas Cadhalpun ]
* Import new upstream release candidate.
* Drop patches included upstream and update the others.
* Add 4 new symbols to libclamav6.symbols.
* Fix debian/copyright.
* Update lintian overrides.
* Update Standards-Version to 3.9.6 (no changes needed).
* Add Breaks and Replaces for old clamd package to clamdscan.
* Remove unnecessary shlibs:Depends from clamav-dbg.
* Add patches to support LLVM 3.5.

[ Sebastian Andrzej Siewior ]
* Add embedded copy of libmspack to be used as fallback, when libmspack-dev
  is not available.

[ Frans Spiesschaert ]
* Updated Dutch Debconf template translation (Closes: #763634)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
##===- utils/llvmgrep - Counts Lines Of Code -----------------*- Script -*-===##
3
 
4
 
#                     The LLVM Compiler Infrastructure
5
 
#
6
 
# This file is distributed under the University of Illinois Open Source
7
 
# License. See LICENSE.TXT for details.
8
 
9
 
##===----------------------------------------------------------------------===##
10
 
#
11
 
# This script searches your srcdir for an egrep style pattern. This can quickly
12
 
# help you build a list of the places you need to modify when changing a header
13
 
# or other "global" name. The only argument is the pattern you want to search
14
 
# for. It should be quoted to escape shell interpretation of the pattern's
15
 
# special characters.
16
 
#
17
 
# Note that the implementation is based on llvmdo. See that script for more
18
 
# details.
19
 
##===----------------------------------------------------------------------===##
20
 
 
21
 
if test "$1" = "-topdir" ; then
22
 
  TOPDIR="$2"
23
 
  shift; shift;
24
 
else
25
 
  TOPDIR=`llvm-config --src-root`
26
 
fi
27
 
 
28
 
if test -d "$TOPDIR" ; then
29
 
  cd $TOPDIR
30
 
  case `uname -s` in
31
 
    SunOS) grep_cmd="ggrep -H -n" ;;
32
 
    Linux) grep_cmd="egrep -H -n" ;;
33
 
    *) grep_cmd="egrep -l -n" ;;
34
 
  esac
35
 
  ./utils/llvmdo -topdir "$TOPDIR" \
36
 
    -dirs "include lib tools utils docs examples test unittests projects cmake" $grep_cmd "$*"
37
 
else
38
 
  echo "Can't find LLVM top directory"
39
 
fi