Similar to rL257663, remove `function` keywords from export.sh and
tag.sh, since they are marked to be run with /bin/sh.
llvm-svn: 257994
diff --git a/llvm/utils/release/export.sh b/llvm/utils/release/export.sh
index 2fd4206..d978055 100755
--- a/llvm/utils/release/export.sh
+++ b/llvm/utils/release/export.sh
@@ -20,7 +20,7 @@
release=""
rc=""
-function usage() {
+usage() {
echo "Export the SVN sources and build tarballs from them"
echo "usage: `basename $0`"
echo " "
@@ -29,7 +29,7 @@
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"
diff --git a/llvm/utils/release/tag.sh b/llvm/utils/release/tag.sh
index caefc7f..c3e839d 100755
--- a/llvm/utils/release/tag.sh
+++ b/llvm/utils/release/tag.sh
@@ -23,7 +23,7 @@
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 @@
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 @@
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