Last change
on this file since 1135 was 319, checked in by bcornec, 19 years ago |
- split build architecture to allow for multiple packages generation (rpms, debs, ebuild, ...)
- only prepared for rpms and debs at the moment
Use tools/mkrpm to generate all the RPMs
Use tools/mkdeb (to be coded correctly) to generate all the debs
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Id
|
File size:
526 bytes
|
Rev | Line | |
---|
[33] | 1 | #!/bin/bash
|
---|
[31] | 2 | #
|
---|
| 3 | # on every build, record the working copy revision string
|
---|
| 4 | #
|
---|
[319] | 5 | # $Id: mksvnversion 319 2006-01-14 10:44:12Z bcornec $
|
---|
| 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
|
---|
[33] | 18 | fi
|
---|
| 19 |
|
---|
| 20 | rel=`svnversion $TOOLHOME/..`
|
---|
[319] | 21 |
|
---|
[237] | 22 | cat > $TOOLHOME/../mondo/REVISION << EOF
|
---|
| 23 | ${rel}
|
---|
| 24 | EOF
|
---|
| 25 | cat > $TOOLHOME/../mindi/REVISION << EOF
|
---|
| 26 | ${rel}
|
---|
| 27 | EOF
|
---|
[33] | 28 |
|
---|
| 29 | #
|
---|
| 30 | # return the release
|
---|
| 31 | #
|
---|
| 32 | echo ${rel}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.