#! /bin/sh -
-## Copyright 1998,1999 The OpenLDAP Foundation
+# $OpenLDAP$
+## Copyright 1998-2000 The OpenLDAP Foundation
## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
## of this package for details.
#
_EOF_
$MKDEP_CC $MKDEP_CFLAGS $files | \
- sed -e 's; \./; ;g' | \
+ sed -e 's; \./; ;g' -e 's/ :/:/' | \
$SED > $TMP.sed
# do not pipe to awk. SGI awk wants a filename as argument.
# (or '-', but I do not know if all other awks support that.)
dep=$0
}
/.*/ {
+ if ( length(filenm) < 2 ) next
if ( filenm ~ /:.*:$/ ) next
split(dep, depends, " ")
for(d in depends) {
dfile = depends[d]
+ if ( length(dfile) < 2 ) continue
if ( dfile ~ /:/ ) continue
if (( noslash == "yes") && (dfile ~ /^\// )) continue
- if ( length(dfile) < 2 ) continue
rec = filenm " " dfile
print rec
}
- }
+}
' noslash="$NOSLASH" $TMP.sed >> $TMP