repo.or.cz
/
xuni.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Expanded on same-loop-handler-signature code, added staticgen.pl.
[xuni.git]
/
makewc.sh
blob
b05c14db34a1cff5eb387ef198f2a72c6ad4e72b
1
#!/bin/sh
2
3
files
=
4
5
for
file
in
$
(
find
src \
(
-name
'*.c'
-o -name
'*.h'
\
) );
do
6
root
=
$
(
echo
$file
|
sed
's/\.[ch]//'
)
7
ext
=
$
(
echo
$file
|
sed
's/.*\.//'
)
8
9
if
[
.
$ext
=
'.c'
-a -f
$root
.y
];
then
10
file
=
$root
.y
11
fi
12
13
files
=
"
$files
$file
"
14
done
15
16
wc
$files