summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-11-27 05:57:04 +0000
committerPaul Phillips <paulp@improving.org>2010-11-27 05:57:04 +0000
commita3d56cb47e0c8637c855ec006ec17cb79dc39ba7 (patch)
tree49fbb5e1dcf50c3d6e94a2463bb475052e17859a /tools
parentbb3235a2b6f5521040e96da30a6cf122940cd539 (diff)
downloadscala-a3d56cb47e0c8637c855ec006ec17cb79dc39ba7.tar.gz
scala-a3d56cb47e0c8637c855ec006ec17cb79dc39ba7.tar.bz2
scala-a3d56cb47e0c8637c855ec006ec17cb79dc39ba7.zip
The usual flailing associated with changing a s...
The usual flailing associated with changing a shell script and using too recent a feature. Hopefully unbreaks build, no review.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/get-git-svn-rev6
-rwxr-xr-xtools/get-scala-revision6
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/get-git-svn-rev b/tools/get-git-svn-rev
index 0fa020de95..abf795476e 100755
--- a/tools/get-git-svn-rev
+++ b/tools/get-git-svn-rev
@@ -7,7 +7,7 @@
# If no dir is given, current working dir is used.
DIR=""
-if [[ $# -eq 0 ]]; then
+if [ $# -eq 0 ]; then
DIR=`pwd`
else
DIR=$1
@@ -15,9 +15,9 @@ fi
builtin cd $DIR
-if [[ -d .svn ]]; then
+if [ -d .svn ]; then
svn info . | grep ^Revision | sed 's/Revision: //'
-elif [[ -d .git ]]; then
+elif [ -d .git ]; then
GIT_PAGER=cat
# this grabs more than one line because otherwise if you have local
# commits which aren't in git-svn it won't see any revision.
diff --git a/tools/get-scala-revision b/tools/get-scala-revision
index 0fa020de95..abf795476e 100755
--- a/tools/get-scala-revision
+++ b/tools/get-scala-revision
@@ -7,7 +7,7 @@
# If no dir is given, current working dir is used.
DIR=""
-if [[ $# -eq 0 ]]; then
+if [ $# -eq 0 ]; then
DIR=`pwd`
else
DIR=$1
@@ -15,9 +15,9 @@ fi
builtin cd $DIR
-if [[ -d .svn ]]; then
+if [ -d .svn ]; then
svn info . | grep ^Revision | sed 's/Revision: //'
-elif [[ -d .git ]]; then
+elif [ -d .git ]; then
GIT_PAGER=cat
# this grabs more than one line because otherwise if you have local
# commits which aren't in git-svn it won't see any revision.