install.mergeDir 213 B

12345
  1. #!/bin/bash
  2. cd "$1"
  3. # Use fakeroot.sh to ensure that permissions are preserved, and install.exec to ensure that we are running tar -x on the right system.
  4. fakeroot.sh -r tar -c . | install.exec "tar -x -C \"$2\""