summaryrefslogtreecommitdiff
path: root/Build/source/build-aux/depcomp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-09-22 00:22:16 +0000
committerKarl Berry <karl@freefriends.org>2017-09-22 00:22:16 +0000
commit3cc54a8b96c61074975c532b73fa92656ec6bb67 (patch)
treecd2ec4da3bd63bf5aa3d5b33bbca984708ee5c4b /Build/source/build-aux/depcomp
parenta0d9230b9a3ea179910d642f1894fcc30b6d54f9 (diff)
tl-update-auto
git-svn-id: svn://tug.org/texlive/trunk@45375 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/build-aux/depcomp')
-rwxr-xr-xBuild/source/build-aux/depcomp35
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/build-aux/depcomp b/Build/source/build-aux/depcomp
index 4527c6411f3..5ff3c6feb4b 100755
--- a/Build/source/build-aux/depcomp
+++ b/Build/source/build-aux/depcomp
@@ -251,6 +251,41 @@ hp)
exit 1
;;
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -ne 0; then
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like '#:fec' to the end of the
+ # dependency line.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
+ | tr "$nl" ' ' >> "$depfile"
+ echo >> "$depfile"
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> "$depfile"
+ else
+ make_dummy_depfile
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
xlc)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,