Changeset d3e7ae2b8283e5d05460c2b3b6d365a6562216b8
- Timestamp:
- 05/31/11 19:27:34
(2 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
| rb53bf48 |
rd3e7ae2 |
|
| 24 | 24 | if [ -r "$1" ]; then |
|---|
| 25 | 25 | 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 |
|---|
| 27 | 27 | echo " * version unchanged" |
|---|
| 28 | 28 | exit |
|---|