From: Joey Hess Date: Thu, 18 Oct 2007 18:09:27 +0000 (-0400) Subject: add changelog entry and use mkdir -p X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/c8088cf4d74fb8f48e8acf1784912727cdbc53fb?ds=sidebyside add changelog entry and use mkdir -p --- diff --git a/debian/changelog b/debian/changelog index 8b8fdcc..7a56883 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ mr (0.4) UNRELEASED; urgency=low is used to register a sibdirectory. * Signal handling for commands run by mr, including handling of SIGINT to stop mr. + * Ensure parent dir exists prior to checkout. (madduck) -- Joey Hess Thu, 18 Oct 2007 13:57:41 -0400 diff --git a/mr b/mr index b2cb388..8e845a9 100755 --- a/mr +++ b/mr @@ -428,9 +428,10 @@ sub action { #{{{ } $dir=~s/^(.*)\/[^\/]+\/?$/$1/; + if (! -d $dir) { print "mr $action: creating parent directory $dir\n" if $verbose; - mkdir $dir; + my $ret=system("mkdir", "-p", $dir); } } elsif ($action eq 'update') {