You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/08/23 02:28:27 UTC
[incubator-nlpcraft] branch master updated: WIP.
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 7c675dd WIP.
7c675dd is described below
commit 7c675ddc244c0d8e9fdfc0f24756a6d28f5814af
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Sat Aug 22 19:28:18 2020 -0700
WIP.
---
bin/prepare.sh | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/bin/prepare.sh b/bin/prepare.sh
index b840b3b..3908aad 100755
--- a/bin/prepare.sh
+++ b/bin/prepare.sh
@@ -18,7 +18,7 @@
if [[ $1 = "" ]] ; then
echo "Version must be set as input parameter."
- exit -1
+ exit 1
fi
#
@@ -68,8 +68,9 @@ rsync -avzq ${coreModule}/target/apidocs/** ${zipDir}/${tmpDir}/javadoc --exclud
rsync -avzq ${stanfordModule}/target/*.jar ${zipDir}/${tmpDir}/build --exclude '*-sources.jar'
# Prepares bin zip.
-cd ${zipDir}
-zip -rq ${zipFileBin} ${tmpDir} 2> /dev/null
+cd ${zipDir} || exit
+zip -rq "${zipFileBin}" ${tmpDir} 2> /dev/null
+echo "Binary zip created: " "${zipFileBin}"
# Deletes some data for src zip
rm -R ${tmpDir}/build 2> /dev/null
@@ -93,20 +94,21 @@ cp README.md ${zipDir}/${tmpDir}
cp javadoc/stylesheet.css ${zipDir}/${tmpDir}/javadoc
# Prepares src zip.
-cd ${zipDir}
-zip -rq ${zipFileSrc} ${tmpDir} 2> /dev/null
+cd ${zipDir} || exit
+zip -rq "${zipFileSrc}" ${tmpDir} 2> /dev/null
+echo "Source zip created: " "${zipFileSrc}"
rm -R ${tmpDir} 2> /dev/null
function sign() {
- shasum -a 256 $1 > $1.sha256
- gpg --local-user ${localUser} --sign --armor --output $1.asc --detach-sign $1
+ shasum -a 256 "$1" > "$1".sha256
+ gpg --local-user ${localUser} --sign --armor --output "$1".asc --detach-sign "$1"
}
sign "${zipFileBin}"
sign "${zipFileSrc}"
-cd ${curDir}
+cd ${curDir} || exit
echo
echo "****************************"