blob: 6157fde23dba9784b1291d2ba3dcb25d37ab66a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#! /bin/sh
set -e
usage() {
printf "%s\n" "$0 sourcepath file ..."
}
test $# -ge 2 || (usage >&2; exit 1)
test -d "$1" || (printf "%s not a dir\n" "$1"; exit 1)
sp="$1"
shift 1
for f in $@
do
bn=$(basename $f .class)
while read sf
do
test -z $sf || printf -- "-C $sp %s %s " "$sf" | sed "s,$sp/,,g"
done <<-EOF
$(find $sp -iname "$bn"'$*.class')
EOF
printf -- "-C $sp %s %s " "$f" | sed "s,$sp/,,g"
done
printf "\n"
|