repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduces CEP project
[lcapit-junk-code.git]
/
git-search
blob
cc64701919a1003e92c13c32100e431d54668b70
1
#!/bin/sh
2
3
for
dir
in
$
(
ls
);
do
4
pushd
$dir
1
> /
dev
/
null
5
for
file
in
$
(
ls
);
do
6
obj
=
"
$dir
$file
"
7
type
=
$
(
git-cat-file
-t
$obj
)
8
if
[
"
$type
"
=
"blob"
];
then
9
ret
=
$
(
git-cat-file blob
$obj
|
grep
Elf
)
10
if
[
-n
"
$ret
"
];
then
11
echo
$obj
12
fi
13
fi
14
done
15
popd
1
> /
dev
/
null
16
done
17
18
exit
0