Changeset f0114718cabb08f0487ff82261a4a07b409e899f

Show
Ignore:
Timestamp:
04/22/11 05:24:09 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1303449849 -0400
git-parent:

[cc25c432f34afbca6ba39d5eb9c7164bb3b2aa18]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1303449849 -0400
Message:

add %at in there so that people that need numbers can have numbers

Files:

Legend:

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

    r5500fdd rf011471  
    55  echo "Building version info from git" 
    66  HASH=`git show --format=%H | head -1` 
     7  TSTAMP=`git show --format=%at | head -1` 
    78  echo "    * version -> $HASH" 
    89  SYM=`git name-rev $HASH | awk '{print $2;}' | sed -e 's/\^.*//'` 
     
    1213  echo "    * symbolic -> $SYM" 
    1314  BRANCH=$SYM 
     15  VERSION="$HASH.$TSTAMP" 
    1416  if [ -n "`echo $STATUS | grep 'Changed but not updated'`" ]; then 
    15     HASH="$HASH.modified
     17    VERSION="$HASH.modified.$TSTAMP
    1618  fi 
    1719else 
     
    2224if [ -r "$1" ]; then 
    2325  eval `cat noit_version.h | awk '/^#define/ { print $2"="$3;}'` 
    24   if [ "$NOIT_BRANCH" == "$BRANCH" -a "$NOIT_VERSION" == "$HASH" ]; then 
     26  if [ "$NOIT_BRANCH" == "$BRANCH" -a "$NOIT_VERSION" == "$VERSION" ]; then 
    2527    echo "    * version unchanged" 
    2628    exit 
     
    3436#endif 
    3537#ifndef NOIT_VERSION 
    36 #define NOIT_VERSION "$HASH
     38#define NOIT_VERSION "$VERSION
    3739#endif 
    3840