Skip to content

Commit

Permalink
version.sh: use "sh" instead of "bash"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansa89 committed May 7, 2016
1 parent d1b6207 commit c50d777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions version.h

This file was deleted.

6 changes: 3 additions & 3 deletions version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

VERSION="1"
VER="52"
Expand All @@ -8,11 +8,11 @@ MACHINE=`uname -m`
OS=`uname`
LOCALVER=0

if [ -d ".git" -o -d "../../.git" ]; then
if [[ -d ".git" ]] || [[ -d "../../.git" ]]; then
git rev-list HEAD | sort > config.git-hash
LOCALVER=`wc -l config.git-hash | awk '{print $1}'`
fi
if [ $LOCALVER \> 1 ] ; then
if [[ $LOCALVER > 1 ]] ; then
VER=`git rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'`
if [ $VER != $LOCALVER ] ; then
VER="$VER+$(($LOCALVER-$VER))"
Expand Down

0 comments on commit c50d777

Please sign in to comment.