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
index 945c05d2b6..78cfad3240 100755 --- a/dodoc.sh +++ b/dodoc.sh @@ -90,7 +90,7 @@ do it=$(expr "$path" : doc-$type-inst/'\(.*\)') || continue t="doc-${type}pages/$it" test -f "$t" && diff -q "$path" "$t" && continue - + mkdir -p "$(dirname "$t")" && echo ": $t" && rm -f "$t" && ln "$path" "$t" || exit ( cd doc-${type}pages && git add "$it" ) done || exit