This is an automated email from the ASF dual-hosted git repository.
kyork pushed a commit to branch release/0.24
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/release/0.24 by this push:
new 35a7a25 update publish script
35a7a25 is described below
commit 35a7a25c91fb92376c8bb4704e88ce797be3a1a1
Author: YorkShen <[email protected]>
AuthorDate: Mon May 6 20:55:35 2019 +0800
update publish script
---
scripts/publish_release_candidate.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/scripts/publish_release_candidate.sh
b/scripts/publish_release_candidate.sh
index 9d6a519..6c18ea4 100755
--- a/scripts/publish_release_candidate.sh
+++ b/scripts/publish_release_candidate.sh
@@ -18,11 +18,15 @@
git tag "$1-$2"
git push "$3" "$1-$2"
-rm -rf "$TMPDIR""weex"
-svn checkout https://dist.apache.org/repos/dist/dev/incubator/weex/
"$TMPDIR""weex"
+
+if [ ! -d "$TMPDIR""weex" ]
+then
+ svn checkout https://dist.apache.org/repos/dist/dev/incubator/weex/
"$TMPDIR""weex"
+fi
+
mkdir -p "$TMPDIR""weex/""$1/$2"
echo "$TMPDIR""weex/""$1/$2"
cp "apache-weex-incubating-$1-$2-src.tar.gz"
"apache-weex-incubating-$1-$2-src.tar.gz.asc"
"apache-weex-incubating-$1-$2-src.tar.gz.sha512" "$TMPDIR""weex/""$1/$2"
cd "$TMPDIR""weex"
-svn add "$1"
+svn add "$1/$2"
svn commit -m "$4"
\ No newline at end of file