~ubuntu-branches/debian/experimental/protobuf/experimental

« back to all changes in this revision

Viewing changes to gtest/build-aux/depcomp

  • Committer: Package Import Robot
  • Author(s): Robert S. Edmonds, Micah Anderson, Colin Watson, Steve Langasek, Robert S. Edmonds
  • Date: 2013-10-12 18:32:37 UTC
  • mfrom: (1.3.1) (10.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20131012183237-jz6tvmj9tn68atrf
Tags: 2.5.0-1
[ Micah Anderson ]
* New upstream version. (Closes: #704731.)
* Update debian/watch.
* Refresh patches.

[ Colin Watson ]
* Use the autotools-dev dh addon to update config.guess/config.sub for
  arm64. (Closes: #725976.)

[ Steve Langasek ]
* Don't recommend protobuf-compiler from the bindings, it's not used and
  this doesn't need to be pulled in at runtime. (Closes: #703628.)
* Mark protobuf-compiler Multi-Arch: foreign; the output of this command
  is architecture-independent source, we don't need the version of the
  compiler to match the target arch.
* Bump to debhelper compat 9, so that our libs get installed to the
  multiarch locations.
* Mark the library packages Multi-Arch: same.
* Fix debian/rules to support cross-building of the python bindings.
* Build-depend on libpython-dev, not python-dev, for cross-build
  compatibility.
* (Closes: #726083.)

[ Robert S. Edmonds ]
* Upload to experimental.
* Bump ABI version from 7 to 8.
* Bump Standards-Version to 3.9.4.
* Convert from python-support to dh-python.
* Drop support for python2.6.
* python-protobuf: switch back to the pure Python implementation, as
  upstream appears to no longer be maintaining the current C++ based Python
  binding. See the following upstream issues for details:
  - https://code.google.com/p/protobuf/issues/detail?id=434
  - https://code.google.com/p/protobuf/issues/detail?id=503

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# depcomp - compile a program generating dependencies as side-effects
3
3
 
4
 
scriptversion=2009-04-28.21; # UTC
 
4
scriptversion=2011-12-04.11; # UTC
5
5
 
6
 
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
7
 
# Software Foundation, Inc.
 
6
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
 
7
# 2011 Free Software Foundation, Inc.
8
8
 
9
9
# This program is free software; you can redistribute it and/or modify
10
10
# it under the terms of the GNU General Public License as published by
44
44
  object      Object file output by `PROGRAMS ARGS'.
45
45
  DEPDIR      directory where to store dependencies.
46
46
  depfile     Dependency file to output.
47
 
  tmpdepfile  Temporary file to use when outputing dependencies.
 
47
  tmpdepfile  Temporary file to use when outputting dependencies.
48
48
  libtool     Whether libtool is used (yes/no).
49
49
 
50
50
Report bugs to <bug-automake@gnu.org>.
90
90
   # This is just like msvisualcpp but w/o cygpath translation.
91
91
   # Just convert the backslash-escaped backslashes to single forward
92
92
   # slashes to satisfy depend.m4
93
 
   cygpath_u="sed s,\\\\\\\\,/,g"
 
93
   cygpath_u='sed s,\\\\,/,g'
94
94
   depmode=msvisualcpp
95
95
fi
96
96
 
 
97
if test "$depmode" = msvc7msys; then
 
98
   # This is just like msvc7 but w/o cygpath translation.
 
99
   # Just convert the backslash-escaped backslashes to single forward
 
100
   # slashes to satisfy depend.m4
 
101
   cygpath_u='sed s,\\\\,/,g'
 
102
   depmode=msvc7
 
103
fi
 
104
 
97
105
case "$depmode" in
98
106
gcc3)
99
107
## gcc 3 implements dependency tracking that does exactly what
158
166
' < "$tmpdepfile" |
159
167
## Some versions of gcc put a space before the `:'.  On the theory
160
168
## that the space means something, we add a space to the output as
161
 
## well.
 
169
## well.  hp depmode also adds that space, but also prefixes the VPATH
 
170
## to the object.  Take care to not repeat it in the output.
162
171
## Some versions of the HPUX 10.20 sed can't process this invocation
163
172
## correctly.  Breaking it into two sed invocations is a workaround.
164
 
    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
 
173
    sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
 
174
      | sed -e 's/$/ :/' >> "$depfile"
165
175
  rm -f "$tmpdepfile"
166
176
  ;;
167
177
 
405
415
   rm -f "$tmpdepfile"
406
416
   ;;
407
417
 
 
418
msvc7)
 
419
  if test "$libtool" = yes; then
 
420
    showIncludes=-Wc,-showIncludes
 
421
  else
 
422
    showIncludes=-showIncludes
 
423
  fi
 
424
  "$@" $showIncludes > "$tmpdepfile"
 
425
  stat=$?
 
426
  grep -v '^Note: including file: ' "$tmpdepfile"
 
427
  if test "$stat" = 0; then :
 
428
  else
 
429
    rm -f "$tmpdepfile"
 
430
    exit $stat
 
431
  fi
 
432
  rm -f "$depfile"
 
433
  echo "$object : \\" > "$depfile"
 
434
  # The first sed program below extracts the file names and escapes
 
435
  # backslashes for cygpath.  The second sed program outputs the file
 
436
  # name when reading, but also accumulates all include files in the
 
437
  # hold buffer in order to output them again at the end.  This only
 
438
  # works with sed implementations that can handle large buffers.
 
439
  sed < "$tmpdepfile" -n '
 
440
/^Note: including file:  *\(.*\)/ {
 
441
  s//\1/
 
442
  s/\\/\\\\/g
 
443
  p
 
444
}' | $cygpath_u | sort -u | sed -n '
 
445
s/ /\\ /g
 
446
s/\(.*\)/       \1 \\/p
 
447
s/.\(.*\) \\/\1:/
 
448
H
 
449
$ {
 
450
  s/.*/ /
 
451
  G
 
452
  p
 
453
}' >> "$depfile"
 
454
  rm -f "$tmpdepfile"
 
455
  ;;
 
456
 
 
457
msvc7msys)
 
458
  # This case exists only to let depend.m4 do its work.  It works by
 
459
  # looking at the text of this script.  This case will never be run,
 
460
  # since it is checked for above.
 
461
  exit 1
 
462
  ;;
 
463
 
408
464
#nosideeffect)
409
465
  # This comment above is used by automake to tell side-effect
410
466
  # dependency tracking mechanisms from slower ones.
503
559
  touch "$tmpdepfile"
504
560
  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
505
561
  rm -f "$depfile"
506
 
  cat < "$tmpdepfile" > "$depfile"
 
562
  # makedepend may prepend the VPATH from the source file name to the object.
 
563
  # No need to regex-escape $object, excess matching of '.' is harmless.
 
564
  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
507
565
  sed '1,2d' "$tmpdepfile" | tr ' ' '
508
566
' | \
509
567
## Some versions of the HPUX 10.20 sed can't process this invocation