Skip to content
This repository
Browse code

Merge pull request #1934 from wsnipex/gitrev

allow gitrev to be read from file
  • Loading branch information...
commit 4af88e79a7e0904b53fa4739d2fb3568d7ac5906 2 parents 056d824 + 4377a98
davilla authored February 07, 2013
7  configure.in
@@ -2160,7 +2160,12 @@ if test "$HAVE_GIT" = "yes"; then
2160 2160
   GIT_REV=$(git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h %ci" HEAD | awk '{gsub("-", "");print $2"-"$1}')
2161 2161
 fi
2162 2162
 if test "$GIT_REV" = ""; then
2163  
-  GIT_REV="Unknown"
  2163
+  if test -f VERSION ; then
  2164
+    GIT_REV=$(awk 'END{print substr($1,1,16)}' VERSION)
  2165
+    if test -z $GIT_REV ; then GIT_REV="Unknown" ; fi
  2166
+  else
  2167
+    GIT_REV="Unknown"
  2168
+  fi
2164 2169
 fi
2165 2170
 if test "$host_vendor" = "apple"; then
2166 2171
   echo "#define GIT_REV \"$GIT_REV\"" > git_revision.h
2  tools/mk-release-source
... ...
@@ -1,4 +1,4 @@
1  
-#!/bin/sh
  1
+#!/bin/bash
2 2
 REVISION="${1}"
3 3
 COMPRESS="gzip"
4 4
 WORKDIR="xbmc-${REVISION}"

0 notes on commit 4af88e7

Please sign in to comment.
Something went wrong with that request. Please try again.