RCSdeps
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:0k
- #!/bin/sh
- # refreshing RCS dependencies.
- if [ -h RCS -o -d RCS ]; then
- cd RCS
- fi
- if [ `pwd | grep "[/]RCS$" | wc -l ` -eq 0 ]; then
- echo "Can't found RCS archives"
- exit 1
- fi
- dep=makefile.dep
- if [ -f $dep ]; then
- rm -f $dep
- fi
- echo "# $dep " >$dep
- for fname in ... `ls *,v` ; do
- if [ $fname = ... ] ; then continue; fi
- echo "deps for $fname"
- echo "$fname.D : RCS/$fname ">>$dep
- echo " -" $(TOUCH) $fname.D $(REV) >>$dep
- done
- sed 's/,v.D//g' $dep >$$
- rm -f $dep
- mv $$ $dep