Last change
on this file was
2129,
checked in by westram, 21 years ago
|
* empty log message *
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
815 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # ------------------------------------------------------------------------ |
---|
3 | # |
---|
4 | # very simple java dependency generator |
---|
5 | # XXX.class depends on all *.java containing the word XXX |
---|
6 | # |
---|
7 | # Coded by Ralf Westram (coder@reallysoft.de) in September 2003 |
---|
8 | # Copyright Department of Microbiology (Technical University Munich) |
---|
9 | # |
---|
10 | # Visit our web site at: http://www.arb-home.de/ |
---|
11 | # |
---|
12 | # ------------------------------------------------------------------------ |
---|
13 | |
---|
14 | |
---|
15 | find_deps_for() { |
---|
16 | grep -w -H $1 *.java | sed -e 's/^\([^:]*\)\.java:.*$/\1.class/ig' | sort | uniq |
---|
17 | } |
---|
18 | |
---|
19 | append_dep() { |
---|
20 | sed -e "s/$/ : $1/ig" |
---|
21 | } |
---|
22 | |
---|
23 | make_dependencies() { |
---|
24 | for JAVA in *.java; do |
---|
25 | BASE=`basename $JAVA .java` |
---|
26 | DEPEND=`find_deps_for $BASE | append_dep $BASE.java` |
---|
27 | echo "$DEPEND" |
---|
28 | done |
---|
29 | } |
---|
30 | |
---|
31 | make_dependencies | sort |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.