Changeset d3e7ae2b8283e5d05460c2b3b6d365a6562216b8

Show
Ignore:
Timestamp:
05/31/11 19:27:34 (3 years ago)
Author:
Brandon Philips <brandon.philips@rackspace.com>
git-committer:
Brandon Philips <brandon.philips@rackspace.com> 1306870054 -0700
git-parent:

[ad6b587f427ebbaf421e605ea3d2cf5f6e4980a4]

git-author:
Brandon Philips <brandon.philips@rackspace.com> 1306870054 -0700
Message:

buildtools: fix == bashism in mkversion.sh

With a branch named bpdev I was getting an error at compile time:

[: 1: branches/bpdev: unexpected operator

This was because /bin/sh on my distro is dash which doesn't know what ==
is. Fix this by using a single =.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • buildtools/mkversion.sh

    rb53bf48 rd3e7ae2  
    2424if [ -r "$1" ]; then 
    2525  eval `cat noit_version.h | awk '/^#define/ { print $2"="$3;}'` 
    26   if [ "$NOIT_BRANCH" == "$BRANCH" -a "$NOIT_VERSION" == "$VERSION" ]; then 
     26  if [ "$NOIT_BRANCH" = "$BRANCH" -a "$NOIT_VERSION" = "$VERSION" ]; then 
    2727    echo "    * version unchanged" 
    2828    exit