dodoc - create leading directory when installing

Junio C Hamano committed Apr 23, 2007 at 23:10 UTC 3d575ef77004fb833bfd73384801c5f5c07c352e
1 file changed +1 -1
dodoc.sh
+1 -1
@@ -90,7 +90,7 @@ do
90 it=$(expr "$path" : doc-$type-inst/'\(.*\)') || continue
91 t="doc-${type}pages/$it"
92 test -f "$t" && diff -q "$path" "$t" && continue
93 -
93 + mkdir -p "$(dirname "$t")" &&
94 echo ": $t" && rm -f "$t" && ln "$path" "$t" || exit
95 ( cd doc-${type}pages && git add "$it" )
96 done || exit