[llvm] r257994 - Similar to rL257663, remove `function` keywords from export.sh and

Dimitry Andric via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 16 07:18:36 PST 2016


Author: dim
Date: Sat Jan 16 09:18:35 2016
New Revision: 257994

URL: http://llvm.org/viewvc/llvm-project?rev=257994&view=rev
Log:
Similar to rL257663, remove `function` keywords from export.sh and
tag.sh, since they are marked to be run with /bin/sh.

Modified:
    llvm/trunk/utils/release/export.sh
    llvm/trunk/utils/release/tag.sh

Modified: llvm/trunk/utils/release/export.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/export.sh?rev=257994&r1=257993&r2=257994&view=diff
==============================================================================
--- llvm/trunk/utils/release/export.sh (original)
+++ llvm/trunk/utils/release/export.sh Sat Jan 16 09:18:35 2016
@@ -20,7 +20,7 @@ base_url="https://llvm.org/svn/llvm-proj
 release=""
 rc=""
 
-function usage() {
+usage() {
     echo "Export the SVN sources and build tarballs from them"
     echo "usage: `basename $0`"
     echo " "
@@ -29,7 +29,7 @@ function usage() {
     echo "  -final         The final tag"
 }
 
-function export_sources() {
+export_sources() {
     release_no_dot=`echo $release | sed -e 's,\.,,g'`
     tag_dir="tags/RELEASE_$release_no_dot/$rc"
 

Modified: llvm/trunk/utils/release/tag.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/tag.sh?rev=257994&r1=257993&r2=257994&view=diff
==============================================================================
--- llvm/trunk/utils/release/tag.sh (original)
+++ llvm/trunk/utils/release/tag.sh Sat Jan 16 09:18:35 2016
@@ -23,7 +23,7 @@ revision="HEAD"
 
 base_url="https://llvm.org/svn/llvm-project"
 
-function usage() {
+usage() {
     echo "usage: `basename $0` -release <num> [-rebranch] [-revision <num>] [-dry-run]"
     echo "usage: `basename $0` -release <num> -rc <num> [-dry-run]"
     echo " "
@@ -35,7 +35,7 @@ function usage() {
     echo "  -dry-run         Make no changes to the repository, just print the commands"
 }
 
-function tag_version() {
+tag_version() {
     set -x
     for proj in  $projects; do
         if svn ls $base_url/$proj/branches/release_$branch_release > /dev/null 2>&1 ; then
@@ -53,7 +53,7 @@ function tag_version() {
     set +x
 }
 
-function tag_release_candidate() {
+tag_release_candidate() {
     set -x
     for proj in $projects ; do
         if ! svn ls $base_url/$proj/tags/RELEASE_$tag_release > /dev/null 2>&1 ; then




More information about the llvm-commits mailing list