aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts/collect_sources_for_sdk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'eclipse/scripts/collect_sources_for_sdk.sh')
-rw-r--r--eclipse/scripts/collect_sources_for_sdk.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclipse/scripts/collect_sources_for_sdk.sh b/eclipse/scripts/collect_sources_for_sdk.sh
index 4637595..4824da7 100644
--- a/eclipse/scripts/collect_sources_for_sdk.sh
+++ b/eclipse/scripts/collect_sources_for_sdk.sh
@@ -22,6 +22,13 @@ if [ "-n" == "$1" ]; then
shift
fi
+DIR="frameworks"
+if [ "-s" == "$1" ]; then
+ shift
+ DIR="$1"
+ shift
+fi
+
SRC="$1"
DST="$2"
@@ -36,7 +43,7 @@ function process() {
N=0
E=0
-for i in `find -L "${SRC}/frameworks" -name "*.java"`; do
+for i in `find -L "${SRC}/${DIR}" -name "*.java"`; do
if [ -f "$i" ]; then
# look for ^package (android.view.blah);$
PACKAGE=`sed -n '/^package [^ ;]\+; */{s/[^ ]* *\([^ ;]*\).*/\1/p;q}' "$i"`