source:
trunk/minix/etc/mtree.sh@
15
Last change on this file since 15 was 9, checked in by , 14 years ago | |
---|---|
File size: 256 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | cat $1 | while read line |
3 | do echo $line | awk 'NF==4 { print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" } NF==3 { print "rm "$1" ; ln -s "$3" "$1" || exit 1" } ' | sh || exit 1 |
4 | done |
Note:
See TracBrowser
for help on using the repository browser.