From e67b7c70380e1424c09ae3428e53f69ca30911d4 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 26 Apr 2011 17:26:25 +0000 Subject: [PATCH] build Version into Version.pm not Utils.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/modifyUtils | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/perl-xCAT/modifyUtils b/perl-xCAT/modifyUtils index f750d8e0e..8fbd74fb5 100755 --- a/perl-xCAT/modifyUtils +++ b/perl-xCAT/modifyUtils @@ -1,9 +1,9 @@ #!/bin/sh -# Put the version, svn revision #, and build date into the Version function in Utils.pm +# Put the version, svn revision #, and build date into the Version function in Version.pm if [ -z "$1" ] then - echo "modifyUtils: Error: must specify the xCAT version as an argument!" + echo "modifyVersion: Error: must specify the xCAT version as an argument!" exit fi VER=$1 @@ -24,8 +24,8 @@ BUILDDATE=`date` if [ "$(uname)" = "AIX" ] then - sed -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Utils.pm >xCAT/Utils.pm.new - mv xCAT/Utils.pm.new xCAT/Utils.pm + sed -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Version.pm >xCAT/Version.pm.new + mv xCAT/Version.pm.new xCAT/Version.pm else - sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Utils.pm + sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Version.pm fi