Changeset 2527


Ignore:
Timestamp:
Jul 28, 2007, 4:19:12 AM (14 years ago)
Author:
charles
Message:

version.sh can't call svn from the command-line...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/version.sh

    r2526 r2527  
    1313PEERID_PREFIX="-TR072Z-"
    1414USERAGENT_PREFIX="0.72+"
    15 SVN_REVISION=`svn info . | sed -ne "s/^Revision: \(.*\:\)\{0,1\}\(.*\)$/\2/p"`
     15SVN_REVISION=`( find . '(' -name '*.[chm]' -o -name '*.cpp' -o -name '*.po' \
     16                     -o -name '*.mk' -o -name '*.in' -o -name 'Makefile' \
     17                     -o -name 'configure' ')' -exec cat '{}' ';' ) | \
     18                   sed -e '/\$Id:/!d' -e \
     19                     's/.*\$Id: [^ ]* \([0-9]*\) .*/\1/' |
     20                   awk 'BEGIN { REV=0 }
     21                              { if ( $1 > REV ) REV=$1 }
     22                        END   { print REV }'`
    1623 
    1724# Generate files to be included: only overwrite them if changed so make
Note: See TracChangeset for help on using the changeset viewer.