From 63163a8c6eb12b03608a80216ea169e5b0b022c8 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Thu, 20 Jul 2017 20:28:43 -0700 Subject: [PATCH] Remove make_new_version.sh Summary: Seems the only function of the script is to create a new branch, which can be done easily. I'm removing it. Closes https://github.com/facebook/rocksdb/pull/2623 Differential Revision: D5468681 Pulled By: yiwu-arbug fbshipit-source-id: 87dea5ecc4c85e06941ccbc36993f7f589063878 --- build_tools/make_new_version.sh | 53 --------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 build_tools/make_new_version.sh diff --git a/build_tools/make_new_version.sh b/build_tools/make_new_version.sh deleted file mode 100755 index edcb36c1f..000000000 --- a/build_tools/make_new_version.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright (c) 2011-present, Facebook, Inc. All rights reserved. -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. - -set -e -if [ -z "$GIT" ] -then - GIT="git" -fi - -# Print out the colored progress info so that it can be brainlessly -# distinguished by users. -function title() { - echo -e "\033[1;32m$*\033[0m" -} - -usage="Create new RocksDB version and prepare it for the release process\n" -usage+="USAGE: ./make_new_version.sh []\n" -usage+=" version: specify a version without '.fb' suffix (e.g. 5.4).\n" -usage+=" remote: name of the remote to push the branch to (default: origin)." - -# -- Pre-check -if [[ $# < 1 ]]; then - echo -e $usage - exit 1 -fi - -ROCKSDB_VERSION=$1 - -REMOTE="origin" -if [[ $# > 1 ]]; then - REMOTE=$2 -fi - -GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` -echo $GIT_BRANCH - -if [ $GIT_BRANCH != "master" ]; then - echo "Error: Current branch is '$GIT_BRANCH', Please switch to master branch." - exit 1 -fi - -title "Adding new tag for this release ..." -BRANCH="$ROCKSDB_VERSION.fb" -$GIT checkout -b $BRANCH - -# Setting up the proxy for remote repo access -title "Pushing new branch to remote repo ..." -git push $REMOTE --set-upstream $BRANCH - -title "Branch $BRANCH is pushed to github;"