title: create folder structure based on file
body: <p>Currently, I'm trying to improve my svn merge process. To achieve this, I started creating a shell script that looks up which folders are changed since the last dropmerge. The output file of that script looks like this:</p>
  
  <pre><code>/components/intmodules/
  /components/ext/modules/EmailConn Runtime/
  /components/emailconn/
  /components/ftpconn/
  /components/
  /redist/
  </code></pre>
  
  <p>Now I want this folder structure to be created on the file system, using svn updates. All folders should be checked out with <code>--depth files</code>, except for the deepest (non-components), those should be checked out with <code>--depth infinity</code>.</p>
  
  <p>How would I achieve this. How can I iterate over the folders and checkout/update these folders, including those with spaces in the name?</p>