Browse Source

Add git commit hash to developer rpm build names

We need to set the srcdir variable in order for the most recent
git hash to be determined by VERSION.sh.  This patch will result
in deveoper RPM builds having the git commit hash in the release
field.
Nathan Kinder 12 years ago
parent
commit
52fb682ceb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rpm/rpmverrel.sh

+ 4 - 0
rpm/rpmverrel.sh

@@ -1,5 +1,9 @@
 #!/bin/sh
 
+# Set srcdir so VERSION.sh is able to
+# determine the last git commit hash.
+srcdir=`pwd`
+
 # Source VERSION.sh to set the version
 # and release environment variables.
 source ./VERSION.sh