summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-23 00:20:53 -0400
committerLusheng Ji <lji@research.att.com>2018-03-23 00:21:04 -0400
commit8374ca27bb8ad13be686d689301edef2f4c1fb0f (patch)
tree168466936b63e3e671585d45ae1ea02bb8cc61e8
parent0ce8925dfd6e0af6c1cf6079018ea85c98db5a5a (diff)
Add upload-recursively function
Issue-ID: DCAEGEN2-206 Change-Id: I87fd678977fe912030e54c75debad1126f1cf692 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rw-r--r--scripts/mvn-phase-lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/mvn-phase-lib.sh b/scripts/mvn-phase-lib.sh
index aa3f637..6f8f2af 100644
--- a/scripts/mvn-phase-lib.sh
+++ b/scripts/mvn-phase-lib.sh
@@ -428,6 +428,13 @@ upload_files_of_extension()
upload_raw_file "$F" "$2"
done
}
+upload_files_of_extension_recursively()
+{
+ FILES=$(find . -name "*.$1")
+ for F in $FILES ; do
+ upload_raw_file "$F"
+ done
+}
generate_pypirc_then_publish()