repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
explicitly mask byte i/o values to bytes.
[minix3.git]
/
etc
/
mtree.sh
blob
ade62a9d365ddfa886acb43019b60f278f2722d5
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