From 3d575ef77004fb833bfd73384801c5f5c07c352e Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 23 Apr 2007 23:10:15 -0700 Subject: [PATCH] dodoc - create leading directory when installing --- dodoc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dodoc.sh b/dodoc.sh 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 -- 2.11.4.GIT