~ubuntu-branches/ubuntu/breezy/muse/breezy

« back to all changes in this revision

Viewing changes to depcomp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-02-07 15:18:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040207151822-es27xxkzbcxkebjm
Tags: 0.6.3-1
* New upstream version.
* Added patches:
  + [10_alsa_init_fix] New, from upstream CVS.
    Initialize direction variable when setting Alsa parameters.
  + [10_canvas_translation_fix] New, from upstream CVS.
    Do not translate tooltips twice in canvas popup.
  + [10_checkbox_fix] New, from upstream CVS.
    Use proper set/test methods on metronome checkboxes.
  + [10_html_doc_cleanup] New.
    Fix links and HTML errors in documentation.
  + [20_allow_system_timer] New.
    The new upstream version fails by default if the real-time clock
    could not be accessed (usually the case when not running suid-root).
    This patch reverts the old behaviour of falling back to the more
    inaccurate system timer.
* Updated patches:
  + [11_PIC_fixes_fixup] Rediffed.
* Removed patches:
  + [20_no_atomic_asm] Merged upstream.
* debian/compat: Splice out debhelper compatibility level from rules file.
* debian/control: Build-depend on latest jack release by default.
  Closes: #228788
* debian/control: Bump standards version.
* debian/control: Use auto-generated debconf dependency via misc:Depends.
* debian/control: Minor tweaks to the long description.
* debian/control: Tighten fluidsynth build dependency to sane version.
* debian/muse.doc-base: New. Register HTML documentation with doc-base.
* debian/templates: Tiny rewording, and typo fix.
* debian/templates, debian/po/*: Switch to po-debconf for translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
fi
32
32
# `libtool' can also be set to `yes' or `no'.
33
33
 
34
 
depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
 
34
if test -z "$depfile"; then
 
35
   base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
 
36
   dir=`echo "$object" | sed 's,/.*$,/,'`
 
37
   if test "$dir" = "$object"; then
 
38
      dir=
 
39
   fi
 
40
   # FIXME: should be _deps on DOS.
 
41
   depfile="$dir.deps/$base"
 
42
fi
 
43
 
35
44
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
36
45
 
37
46
rm -f "$tmpdepfile"
197
206
  rm -f "$tmpdepfile"
198
207
  ;;
199
208
 
 
209
icc)
 
210
  # Intel's C compiler understands `-MD -MF file'.  However on
 
211
  #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
 
212
  # ICC 7.0 will fill foo.d with something like
 
213
  #    foo.o: sub/foo.c
 
214
  #    foo.o: sub/foo.h
 
215
  # which is wrong.  We want:
 
216
  #    sub/foo.o: sub/foo.c
 
217
  #    sub/foo.o: sub/foo.h
 
218
  #    sub/foo.c:
 
219
  #    sub/foo.h:
 
220
  # ICC 7.1 will output
 
221
  #    foo.o: sub/foo.c sub/foo.h
 
222
  # and will wrap long lines using \ :
 
223
  #    foo.o: sub/foo.c ... \
 
224
  #     sub/foo.h ... \
 
225
  #     ...
 
226
 
 
227
  "$@" -MD -MF "$tmpdepfile"
 
228
  stat=$?
 
229
  if test $stat -eq 0; then :
 
230
  else
 
231
    rm -f "$tmpdepfile"
 
232
    exit $stat
 
233
  fi
 
234
  rm -f "$depfile"
 
235
  # Each line is of the form `foo.o: dependent.h',
 
236
  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
 
237
  # Do two passes, one to just change these to
 
238
  # `$object: dependent.h' and one to simply `dependent.h:'.
 
239
  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
 
240
  # Some versions of the HPUX 10.20 sed can't process this invocation
 
241
  # correctly.  Breaking it into two sed invocations is a workaround.
 
242
  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
 
243
    sed -e 's/$/ :/' >> "$depfile"
 
244
  rm -f "$tmpdepfile"
 
245
  ;;
 
246
 
200
247
tru64)
201
 
   # The Tru64 AIX compiler uses -MD to generate dependencies as a side
 
248
   # The Tru64 compiler uses -MD to generate dependencies as a side
202
249
   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
203
 
   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put 
 
250
   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
204
251
   # dependencies in `foo.d' instead, so we check for that too.
205
252
   # Subdirectories are respected.
 
253
   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
 
254
   test "x$dir" = "x$object" && dir=
 
255
   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
206
256
 
207
 
   tmpdepfile1="$object.d"
208
 
   tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` 
209
257
   if test "$libtool" = yes; then
 
258
      tmpdepfile1="$dir.libs/$base.lo.d"
 
259
      tmpdepfile2="$dir.libs/$base.d"
210
260
      "$@" -Wc,-MD
211
261
   else
 
262
      tmpdepfile1="$dir$base.o.d"
 
263
      tmpdepfile2="$dir$base.d"
212
264
      "$@" -MD
213
265
   fi
214
266
 
240
292
 
241
293
dashmstdout)
242
294
  # Important note: in order to support this mode, a compiler *must*
243
 
  # always write the proprocessed file to stdout, regardless of -o,
244
 
  # because we must use -o when running libtool.
 
295
  # always write the proprocessed file to stdout, regardless of -o.
 
296
  "$@" || exit $?
 
297
 
 
298
  # Remove the call to Libtool.
 
299
  if test "$libtool" = yes; then
 
300
    while test $1 != '--mode=compile'; do
 
301
      shift
 
302
    done
 
303
    shift
 
304
  fi
 
305
 
 
306
  # Remove `-o $object'.
 
307
  IFS=" "
 
308
  for arg
 
309
  do
 
310
    case $arg in
 
311
    -o)
 
312
      shift
 
313
      ;;
 
314
    $object)
 
315
      shift
 
316
      ;;
 
317
    *)
 
318
      set fnord "$@" "$arg"
 
319
      shift # fnord
 
320
      shift # $arg
 
321
      ;;
 
322
    esac
 
323
  done
 
324
 
245
325
  test -z "$dashmflag" && dashmflag=-M
246
 
  ( IFS=" "
247
 
    case " $* " in
248
 
    *" --mode=compile "*) # this is libtool, let us make it quiet
249
 
      for arg
250
 
      do # cycle over the arguments
251
 
        case "$arg" in
252
 
        "--mode=compile")
253
 
          # insert --quiet before "--mode=compile"
254
 
          set fnord "$@" --quiet
255
 
          shift # fnord
256
 
          ;;
257
 
        esac
258
 
        set fnord "$@" "$arg"
259
 
        shift # fnord
260
 
        shift # "$arg"
261
 
      done
262
 
      ;;
263
 
    esac
264
 
    "$@" $dashmflag | sed 's:^[^:]*\:[  ]*:'"$object"'\: :' > "$tmpdepfile"
265
 
  ) &
266
 
  proc=$!
267
 
  "$@"
268
 
  stat=$?
269
 
  wait "$proc"
270
 
  if test "$stat" != 0; then exit $stat; fi
 
326
  # Require at least two characters before searching for `:'
 
327
  # in the target name.  This is to cope with DOS-style filenames:
 
328
  # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
 
329
  "$@" $dashmflag |
 
330
    sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile"
271
331
  rm -f "$depfile"
272
332
  cat < "$tmpdepfile" > "$depfile"
273
333
  tr ' ' '
285
345
  ;;
286
346
 
287
347
makedepend)
 
348
  "$@" || exit $?
 
349
  # Remove any Libtool call
 
350
  if test "$libtool" = yes; then
 
351
    while test $1 != '--mode=compile'; do
 
352
      shift
 
353
    done
 
354
    shift
 
355
  fi
288
356
  # X makedepend
289
 
  (
290
 
    shift
291
 
    cleared=no
292
 
    for arg in "$@"; do
293
 
      case $cleared in no)
294
 
        set ""; shift
295
 
        cleared=yes
296
 
      esac
297
 
      case "$arg" in
298
 
        -D*|-I*)
299
 
          set fnord "$@" "$arg"; shift;;
300
 
        -*)
301
 
          ;;
302
 
        *)
303
 
          set fnord "$@" "$arg"; shift;;
304
 
      esac
305
 
    done
306
 
    obj_suffix="`echo $object | sed 's/^.*\././'`"
307
 
    touch "$tmpdepfile"
308
 
    ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@"
309
 
  ) &
310
 
  proc=$!
311
 
  "$@"
312
 
  stat=$?
313
 
  wait "$proc"
314
 
  if test "$stat" != 0; then exit $stat; fi
 
357
  shift
 
358
  cleared=no
 
359
  for arg in "$@"; do
 
360
    case $cleared in
 
361
    no)
 
362
      set ""; shift
 
363
      cleared=yes ;;
 
364
    esac
 
365
    case "$arg" in
 
366
    -D*|-I*)
 
367
      set fnord "$@" "$arg"; shift ;;
 
368
    # Strip any option that makedepend may not understand.  Remove
 
369
    # the object too, otherwise makedepend will parse it as a source file.
 
370
    -*|$object)
 
371
      ;;
 
372
    *)
 
373
      set fnord "$@" "$arg"; shift ;;
 
374
    esac
 
375
  done
 
376
  obj_suffix="`echo $object | sed 's/^.*\././'`"
 
377
  touch "$tmpdepfile"
 
378
  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
315
379
  rm -f "$depfile"
316
380
  cat < "$tmpdepfile" > "$depfile"
317
 
  tail +3 "$tmpdepfile" | tr ' ' '
 
381
  sed '1,2d' "$tmpdepfile" | tr ' ' '
318
382
' | \
319
383
## Some versions of the HPUX 10.20 sed can't process this invocation
320
384
## correctly.  Breaking it into two sed invocations is a workaround.
324
388
 
325
389
cpp)
326
390
  # Important note: in order to support this mode, a compiler *must*
327
 
  # always write the proprocessed file to stdout, regardless of -o,
328
 
  # because we must use -o when running libtool.
329
 
  ( IFS=" "
330
 
    case " $* " in
331
 
    *" --mode=compile "*)
332
 
      for arg
333
 
      do # cycle over the arguments
334
 
        case $arg in
335
 
        "--mode=compile")
336
 
          # insert --quiet before "--mode=compile"
337
 
          set fnord "$@" --quiet
338
 
          shift # fnord
339
 
          ;;
340
 
        esac
341
 
        set fnord "$@" "$arg"
342
 
        shift # fnord
343
 
        shift # "$arg"
344
 
      done
 
391
  # always write the proprocessed file to stdout.
 
392
  "$@" || exit $?
 
393
 
 
394
  # Remove the call to Libtool.
 
395
  if test "$libtool" = yes; then
 
396
    while test $1 != '--mode=compile'; do
 
397
      shift
 
398
    done
 
399
    shift
 
400
  fi
 
401
 
 
402
  # Remove `-o $object'.
 
403
  IFS=" "
 
404
  for arg
 
405
  do
 
406
    case $arg in
 
407
    -o)
 
408
      shift
 
409
      ;;
 
410
    $object)
 
411
      shift
 
412
      ;;
 
413
    *)
 
414
      set fnord "$@" "$arg"
 
415
      shift # fnord
 
416
      shift # $arg
345
417
      ;;
346
418
    esac
347
 
    "$@" -E |
 
419
  done
 
420
 
 
421
  "$@" -E |
348
422
    sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
349
423
    sed '$ s: \\$::' > "$tmpdepfile"
350
 
  ) &
351
 
  proc=$!
352
 
  "$@"
353
 
  stat=$?
354
 
  wait "$proc"
355
 
  if test "$stat" != 0; then exit $stat; fi
356
424
  rm -f "$depfile"
357
425
  echo "$object : \\" > "$depfile"
358
426
  cat < "$tmpdepfile" >> "$depfile"
364
432
  # Important note: in order to support this mode, a compiler *must*
365
433
  # always write the proprocessed file to stdout, regardless of -o,
366
434
  # because we must use -o when running libtool.
367
 
  ( IFS=" "
368
 
    case " $* " in
369
 
    *" --mode=compile "*)
370
 
      for arg
371
 
      do # cycle over the arguments
372
 
        case $arg in
373
 
        "--mode=compile")
374
 
          # insert --quiet before "--mode=compile"
375
 
          set fnord "$@" --quiet
376
 
          shift # fnord
377
 
          ;;
378
 
        esac
 
435
  "$@" || exit $?
 
436
  IFS=" "
 
437
  for arg
 
438
  do
 
439
    case "$arg" in
 
440
    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
 
441
        set fnord "$@"
 
442
        shift
 
443
        shift
 
444
        ;;
 
445
    *)
379
446
        set fnord "$@" "$arg"
380
 
        shift # fnord
381
 
        shift # "$arg"
382
 
      done
383
 
      ;;
 
447
        shift
 
448
        shift
 
449
        ;;
384
450
    esac
385
 
    "$@" -E |
386
 
    sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
387
 
  ) &
388
 
  proc=$!
389
 
  "$@"
390
 
  stat=$?
391
 
  wait "$proc"
392
 
  if test "$stat" != 0; then exit $stat; fi
 
451
  done
 
452
  "$@" -E |
 
453
  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
393
454
  rm -f "$depfile"
394
455
  echo "$object : \\" > "$depfile"
395
456
  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::    \1 \\:p' >> "$depfile"