Changeset 320 in MondoRescue for trunk/tools/mksvnversion
- Timestamp:
- Jan 15, 2006, 12:29:12 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/mksvnversion
r238 r320 1 1 #!/bin/bash 2 ########################################################3 # $Id$4 ########################################################5 2 # 6 3 # on every build, record the working copy revision string 7 4 # 8 dname=`dirname $0` 9 prem=`echo $dname |cut -c1` 10 if [ ${prem} == "/" ]; then 11 export TOOLHOME=$dname 12 else 13 export TOOLHOME=${PWD}/$dname 5 # $Id$ 6 # 7 8 # TOOLHOME should be provided by callers 9 if [ _"$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 14 18 fi 15 . $TOOLHOME/rpm-env16 19 17 #18 # Create a .c file for mondo to link with and get19 # the right build version from SVN20 #21 20 rel=`svnversion $TOOLHOME/..` 22 cat > $TOOLHOME/../mondo/revision.h << EOF 23 #define REVISION "${rel}" 24 EOF 21 25 22 cat > $TOOLHOME/../mondo/REVISION << EOF 26 23 ${rel}
Note:
See TracChangeset
for help on using the changeset viewer.