SVN: java-tools/list-sysjars.sh
pawelz
pawelz at pld-linux.org
Mon Mar 30 09:53:40 CEST 2009
Author: pawelz
Date: Mon Mar 30 09:53:39 2009
New Revision: 10270
Modified:
java-tools/list-sysjars.sh
Log:
- also search in subdirectories of /usr/share/java
Modified: java-tools/list-sysjars.sh
==============================================================================
--- java-tools/list-sysjars.sh (original)
+++ java-tools/list-sysjars.sh Mon Mar 30 09:53:39 2009
@@ -12,6 +12,7 @@
exit 1
fi
-for I in /usr/share/java/*.jar; do
- [ -L $I ] || jar tf $I | grep '\.class$' | tr '/' '.' | grep -v '\$' | awk '{gsub ("\.class$", ""); printf("%s %s\n", "'$I'", $0)}';
+for I in /usr/share/java/*; do
+ [ -f $I ] && jar tf $I | grep '\.class$' | tr '/' '.' | grep -v '\$' | awk '{gsub ("\.class$", ""); printf("%s %s\n", "'$I'", $0)}';
+ [ -d $I ] && for J in $I/*; do [ -f $J ] && jar tf $J | grep '\.class$' | tr '/' '.' | grep -v '\$' | awk '{gsub ("\.class$", ""); printf("%s %s\n", "'$J'", $0)}'; done
done
More information about the pld-cvs-commit
mailing list