From: Axel S. <as...@us...> - 2004-10-28 21:48:12
|
Update of /cvsroot/gtk2hs/gtk2hs/mk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11265/mk Modified Files: chsDepend.in Log Message: New, hopefully clever enough, way of calculating dependencies. Index: chsDepend.in =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/mk/chsDepend.in,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- chsDepend.in 27 Oct 2004 13:21:43 -0000 1.6 +++ chsDepend.in 28 Oct 2004 21:47:57 -0000 1.7 @@ -22,7 +22,6 @@ for FULLNAME in $@; do FULLNAMEDEP=`echo "$FULLNAME" | $SED 's/\.chs/.dep/'`; FULLNAMEHS=`echo "$FULLNAME" | $SED 's/\.chs/.hs/'`; - TARGETNAMEDEP=$DEPDIRSLASH`basename $FULLNAMEDEP`; if test -f "$FULLNAME"; then DEPS=`$GREP "{#import" $FULLNAME 2> /dev/null | $SED 's/^{#import \([a-zA-Z1-9]*\)#}.*/\1.chs/'`; #echo Looking for dependent files: $DEPS @@ -40,9 +39,9 @@ done; IFS=$OLDIFS; done; + echo "# .chs dependencies for $FULLNAME" > $FULLNAMEDEP; if test -n "$DEPNAMES"; then - echo "$FULLNAMEDEP :" > $TARGETNAMEDEP; - echo "$FULLNAMEHS : $DEPNAMES" >> $TARGETNAMEDEP; + echo "$FULLNAMEHS : $DEPNAMES" >> $FULLNAMEDEP; fi; echo Writing dependency information for $FULLNAME else |