/[eiffelstudio]/trunk/Delivery/scripts/unix/set_version.sh
ViewVC logotype

Contents of /trunk/Delivery/scripts/unix/set_version.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 60731 - (show annotations)
Wed Jun 28 22:34:18 2006 UTC (13 years, 6 months ago) by manus
File MIME type: application/x-sh
File size: 427 byte(s)
Changed name of `svn_version' variable.

1 #!/bin/sh
2
3 # set version number in $3 to the latest SVN repository version number.
4 # $1 = SVN repository
5 # $2 = pattern to transform
6 # $3 = file to process if any, otherwise display version on output
7
8 computed_svn_revision=`svn info $1 | grep "Last Changed Rev" | sed -e "s/Last Changed Rev: //"`
9 if [[ -z "$2" || -z "$3" ]]; then
10 echo $computed_svn_revision
11 else
12 sed -e "s/$2/$computed_svn_revision/" $3 > tmp
13 mv tmp $3
14 fi

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23