Changeset 2322

Show
Ignore:
Timestamp:
08/07/09 11:43:54 (3 years ago)
Author:
janl
Message:

* Make ./getversion work on Solaris 10 and other systems with old-style /bin/sh (closes #700)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/getversion

    r2026 r2322  
    11#!/bin/sh 
    2 VERSION=$(cat RELEASE) 
     2# Be compatible here, use `` and such old stuff 
     3 
     4VERSION=`cat RELEASE` 
    35 
    46if ls -d .svn > /dev/null 2>&1; then 
     
    1618case $VERSION in 
    1719    svn-*) 
    18         R=$($INFO_CMD | awk '/^Revision: / { print $2; }') || { 
     20        R=`$INFO_CMD | awk '/^Revision: / { print $2; }'` || { 
    1921            echo Unable to get svn revision >&2 
    2022            exit 1