repo.or.cz
/
castfs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ChangeLog: I forgot to add the entries for the past few commits
[castfs.git]
/
test
/
mkdirrec.c
blob
851796c664bd9c5e1b5b1b186f4ebd4e3c2426b2
1
#include
"hash.h"
2
3
int
main
(
int
argc
,
char
*
argv
[])
4
{
5
char
buf
[
1024
];
6
cast_paths_ptr tmp
;
7
stage_path
=
argv
[
1
];
8
castHashInit
();
9
while
(
scanf
(
"%s
\n
"
,
buf
) !=
EOF
)
10
{
11
printf
(
"Trying to mkdir -p %s
\n
"
,
buf
);
12
tmp
=
castHashSetValueOf
(
buf
);
13
cast_mkdir_rec_staged
(
tmp
);
14
}
15
castHashDestroy
();
16
return
0
;
17
}