mkdep.sh (1591) | mkdep.sh (38520) |
---|---|
1#!/bin/sh - 2# 3# Copyright (c) 1991, 1993 4# The Regents of the University of California. All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 55 unchanged lines hidden (view full) --- 64 65if [ $# = 0 ] ; then 66 echo 'usage: mkdep [-p] [-f depend_file] [cc_flags] file ...' 67 exit 1 68fi 69 70TMP=/tmp/mkdep$$ 71 | 1#!/bin/sh - 2# 3# Copyright (c) 1991, 1993 4# The Regents of the University of California. All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 55 unchanged lines hidden (view full) --- 64 65if [ $# = 0 ] ; then 66 echo 'usage: mkdep [-p] [-f depend_file] [cc_flags] file ...' 67 exit 1 68fi 69 70TMP=/tmp/mkdep$$ 71 |
72trap 'rm -f $TMP ; exit 1' 1 2 3 13 15 | 72trap 'rm -f $TMP ; trap 2 ; kill -2 $$' 1 2 3 13 15 |
73 74cc -M $* | 75sed " 76 s; \./; ;g 77 /\.c:$/d 78 $SED" | 79awk '{ 80 if ($1 != prev) { --- 31 unchanged lines hidden --- | 73 74cc -M $* | 75sed " 76 s; \./; ;g 77 /\.c:$/d 78 $SED" | 79awk '{ 80 if ($1 != prev) { --- 31 unchanged lines hidden --- |