repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add some info to README.md
[cmdllinux.git]
/
scripts
/
_mkcpio
blob
3001123380b4ecbd17920773540a5b0cd1cdff92
1
#!/bin/sh
2
3
tempfile
=
`mktemp 2> /dev/null`
|| tempfile
=/
tmp
/
test
$$
4
trap
"rm -f
$tempfile
"
0 1 2 5 15
5
6
cpiofile
=
file
.
cpio
7
[ !
-z
"
$1
"
] &&
cpiofile
=
$1
8
9
find
-mindepth
1
>
$tempfile
10
cpio
-o --format
=
newc
<
$tempfile
>
$cpiofile