You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by dl...@apache.org on 2016/11/15 17:21:14 UTC
[1/2] incubator-edgent git commit: Merge pull request #226
Repository: incubator-edgent
Updated Branches:
refs/heads/release1.0.0 bff397fab -> 8b3002ff7
Merge pull request #226
This closes #226
Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/bb856f31
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/bb856f31
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/bb856f31
Branch: refs/heads/release1.0.0
Commit: bb856f31e7a7aa575ed7c0a7137f5ef2544458c2
Parents: 6dc47b7
Author: Dale LaBossiere <dl...@us.ibm.com>
Authored: Tue Nov 15 11:03:42 2016 -0500
Committer: Dale LaBossiere <dl...@us.ibm.com>
Committed: Tue Nov 15 11:18:24 2016 -0500
----------------------------------------------------------------------
buildTools/check_sigs.sh | 80 ++++++++++++++++++++++++++++++++++
buildTools/make_release_branch.sh | 62 ++++++++++++++++++++++++++
2 files changed, 142 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/bb856f31/buildTools/check_sigs.sh
----------------------------------------------------------------------
diff --git a/buildTools/check_sigs.sh b/buildTools/check_sigs.sh
new file mode 100755
index 0000000..764cd6d
--- /dev/null
+++ b/buildTools/check_sigs.sh
@@ -0,0 +1,80 @@
+#!/bin/sh -e
+
+################################################################################
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+################################################################################
+
+# Checks the signatures of all bundles in the build/release-edgent directory
+# Or checks the bundles in the specified directory
+
+if [ $1 == "-?" -o $1 == "help" -o $# -gt 1 ]
+then
+ echo "Usage: check_sigs.sh [bundle-directory]"
+ exit 1
+fi
+
+# Assumes run from the root of the edgent git repo
+EDGENT_ROOT=.
+
+BUNDLE_DIR="${EDGENT_ROOT}/build/release-edgent"
+if [ $# -ge 1 ]
+then
+ BUNDLE_DIR=$1
+fi
+
+if [ ! -d ${BUNDLE_DIR} ]
+then
+ echo "Bundle directory '${BUNDLE_DIR}' does not exist"
+ exit 1
+fi
+
+function checkFile() {
+ FILE="$1"
+
+ HASH=`md5 -q "${FILE}"`
+ CHECK=`cat "${FILE}.md5"`
+
+ if [ "$HASH" != "$CHECK" ]
+ then
+ echo "${FILE} MD5 incorrect"
+ exit 1;
+ else
+ echo "${FILE} MD5 OK";
+ fi
+
+ HASH=`shasum -p -a 512 "${FILE}" | awk '{print$1}'`
+ CHECK=`cat "${FILE}.sha"`
+
+ if [ "$HASH" != "$CHECK" ]
+ then
+ echo "${FILE} SHA incorrect"
+ exit 1;
+ else
+ echo "${FILE} SHA OK";
+ fi
+
+ gpg --verify "${FILE}.asc"
+
+}
+
+for bundle in "${BUNDLE_DIR}/*.tgz"
+do
+ checkFile $bundle
+done
+
+echo "SUCCESS: all checksum and signature files OK"
http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/bb856f31/buildTools/make_release_branch.sh
----------------------------------------------------------------------
diff --git a/buildTools/make_release_branch.sh b/buildTools/make_release_branch.sh
new file mode 100755
index 0000000..8b4d377
--- /dev/null
+++ b/buildTools/make_release_branch.sh
@@ -0,0 +1,62 @@
+#!/bin/sh -e
+
+################################################################################
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+################################################################################
+
+
+# This script creates a release branch for the Apache Edgent version from gradle.properties/build_version
+#
+# Must be run at the root of a clone of the master ASF git repository from https://git-wip-us.apache.org/repos/asf/incubator-edgent.git
+
+if [ $# -ne 0 ]
+then
+ echo Usage: buildTools/make_release_branch.sh
+fi
+
+EDGENT_VERSION=`grep build_version gradle.properties | awk '{print $2}'`
+CHECK=`echo "$EDGENT_VERSION" | grep -q -E '[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,3}$'`
+
+if [ $? -ne 0 ]
+then
+ echo "Apache Edgent version needs to be in the form [0-100].[0-100].[0-999]"
+ exit 1;
+fi
+
+EDGENT_ROOT=.
+RELEASE_BRANCH=release${EDGENT_VERSION}
+RELEASE_CLONE_DIRNAME=asfclone-edgent${EDGENT_VERSION}
+
+echo "Updating local master branch"
+git checkout master
+git fetch origin
+git rebase origin/master
+
+echo "Creating release branch ${RELEASE_BRANCH}"
+git push -u origin master:${RELEASE_BRANCH}
+
+echo "Creating new clone ${RELEASE_CLONE_DIRNAME} for release work"
+cd ${EDGENT_ROOT}/..
+mkdir "${RELEASE_CLONE_DIRNAME}"
+cd "${RELEASE_CLONE_DIRNAME}"
+git clone https://git-wip-us.apache.org/repos/asf/incubator-edgent.git .
+
+echo "Creating the RC1 tag"
+git checkout ${RELEASE_BRANCH}
+git tag -a apache-edgent-${EDGENT_VERSION}RC1 -m "Apache Edgent ${EDGENT_VERSION} RC1"
+git push --tags
[2/2] incubator-edgent git commit: Merge pull request #243
Posted by dl...@apache.org.
Merge pull request #243
This closes #243
Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/8b3002ff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/8b3002ff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/8b3002ff
Branch: refs/heads/release1.0.0
Commit: 8b3002ff795a2b867c335a5de830869e79c6e059
Parents: bff397f bb856f3
Author: Dale LaBossiere <dl...@us.ibm.com>
Authored: Tue Nov 15 12:21:09 2016 -0500
Committer: Dale LaBossiere <dl...@us.ibm.com>
Committed: Tue Nov 15 12:21:09 2016 -0500
----------------------------------------------------------------------
buildTools/check_sigs.sh | 80 ++++++++++++++++++++++++++++++++++
buildTools/make_release_branch.sh | 62 ++++++++++++++++++++++++++
2 files changed, 142 insertions(+)
----------------------------------------------------------------------