Changeset 8577


Ignore:
Timestamp:
Jun 1, 2009, 1:01:24 AM (13 years ago)
Author:
charles
Message:

(trunk) another update-version-h.sh portability update, this time from geirha: "grep -o" isn't posix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/update-version-h.sh

    r8576 r8577  
    88    svn_revision=`svnversion -n | cut -d: -f1 | cut -dM -f1 | cut -dS -f1`
    99else
    10     svn_revision=`grep -oh '\$Id: [^ ]\+ [0-9]\+' */*\.cc */*\.[chm] | cut -d ' ' -f 3 | sort | tail -n 1 -`
     10    svn_revision=`awk '/\$Id: /{ if ($4>i) i=$4 } END {print i}' */*.{cc,[chm]}`
    1111fi
    1212
Note: See TracChangeset for help on using the changeset viewer.