Author: pawelz
Date: Thu Mar 26 14:52:29 2009
New Revision: 10257

Added:
   java-tools/find-javareq.sh   (contents, props changed)
Log:
- find classes imported by java sources


Added: java-tools/find-javareq.sh
==============================================================================
--- (empty file)
+++ java-tools/find-javareq.sh  Thu Mar 26 14:52:29 2009
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Auhor: PaweÅ‚ Zuzelski <[email protected]>
+
+help() {
+  echo "Usage: $0 directory"
+  echo "       find java classes imported by java sources"
+  echo "       found in directory"
+}
+
+if [ "$#" == "1" ]; then
+  DIR="$1"
+else
+  help
+  exit 1
+fi
+
+find $DIR -name '*.java' | xargs awk '/^import/ {gsub(";", "", $2); print $2}' 
| fromdos | sort | uniq
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to