source: MondoRescue/branches/stable/tools/mksvnversion@ 544

Last change on this file since 544 was 544, checked in by bcornec, 18 years ago

Build process reviewed:
mkcommon will now export everything from SVN and create tar files containing everyhting

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 421 bytes
Line 
1#!/bin/bash
2#
3# on every build, record the working copy revision string
4#
5# $Id: mksvnversion 544 2006-05-13 22:11:27Z bcornec $
6#
7
8# TOOLHOME should be provided by callers
9if [ _"$TOOLHOME" = _"" ]; then
10 # It's not the case so compute it
11 dname=`dirname $0`
12 prem=`echo $dname |cut -c1`
13 if [ ${prem} == "/" ]; then
14 export TOOLHOME=$dname
15 else
16 export TOOLHOME=${PWD}/$dname
17 fi
18fi
19
20rel=`svnversion $TOOLHOME/..`
21
22#
23# return the release
24#
25echo ${rel}
Note: See TracBrowser for help on using the repository browser.