| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | if [scip-shell system . . `[`. $# -eq 0 ] ; then |
| 4 | echoscip-shell system . . echo. destination path, ending in /,scip-shell filesystem . . `/,`. must be provided |
| 5 | exit 0 |
| 6 | fi |
| 7 | |
| 8 | for src in `findscip-shell system . . find. -mindepth 1 -type d` # create missing target dirs |
| 9 | do |
| 10 | [scip-shell system . . `[`. ! -e $1$src ] && mkdirscip-shell system . . mkdir. -p $1$src |
| 11 | done |
| 12 | |
| 13 | for file in `findscip-shell system . . find. -type f -or -type l` |
| 14 | do |
| 15 | cpscip-shell system . . cp. -d --preserve=timestamps $file $1$file |
| 16 | done |
| 17 |