comparison kdiff3/admin/depcomp @ 77:1184fc843210

KDiff3-0.9.92
author joachim99
date Mon, 16 Apr 2007 21:26:08 +0000
parents 8febbfb1148c
children
comparison
equal deleted inserted replaced
76:257ccb866dc3 77:1184fc843210
1 #! /bin/sh 1 #! /bin/sh
2 # depcomp - compile a program generating dependencies as side-effects 2 # depcomp - compile a program generating dependencies as side-effects
3 3
4 scriptversion=2005-05-14.22 4 scriptversion=2005-07-09.11
5 5
6 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 6 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
7 7
8 # This program is free software; you can redistribute it and/or modify 8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by 9 # it under the terms of the GNU General Public License as published by
465 ;; 465 ;;
466 esac 466 esac
467 done 467 done
468 468
469 "$@" -E | 469 "$@" -E |
470 sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | 470 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
471 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
471 sed '$ s: \\$::' > "$tmpdepfile" 472 sed '$ s: \\$::' > "$tmpdepfile"
472 rm -f "$depfile" 473 rm -f "$depfile"
473 echo "$object : \\" > "$depfile" 474 echo "$object : \\" > "$depfile"
474 cat < "$tmpdepfile" >> "$depfile" 475 cat < "$tmpdepfile" >> "$depfile"
475 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" 476 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"