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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 60730 by manus, Wed Jun 28 22:13:36 2006 UTC revision 60731 by manus, Wed Jun 28 22:34:18 2006 UTC
# Line 5  Line 5 
5  # $2 = pattern to transform  # $2 = pattern to transform
6  # $3 = file to process if any, otherwise display version on output  # $3 = file to process if any, otherwise display version on output
7    
8  svn_revision=`svn info $1 | grep "Last Changed Rev" | sed -e "s/Last Changed Rev: //"`  computed_svn_revision=`svn info $1 | grep "Last Changed Rev" | sed -e "s/Last Changed Rev: //"`
9  if [[ -z "$2" || -z "$3" ]]; then  if [[ -z "$2" || -z "$3" ]]; then
10          echo $svn_revision          echo $computed_svn_revision
11  else  else
12          sed -e "s/$2/$svn_revision/" $3 > tmp          sed -e "s/$2/$computed_svn_revision/" $3 > tmp
13          mv tmp $3          mv tmp $3
14  fi  fi

Legend:
Removed from v.60730  
changed lines
  Added in v.60731

  ViewVC Help
Powered by ViewVC 1.1.23