Last change
on this file since 2430 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:
566 bytes
|
Rev | Line | |
---|
[20] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
[319] | 3 | # Creates deb environment from SVN repository
|
---|
[33] | 4 | #
|
---|
| 5 | # $Id: deb-env 319 2006-01-14 10:44:12Z bcornec $
|
---|
| 6 | #
|
---|
[20] | 7 |
|
---|
[319] | 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
|
---|
| 14 | fi
|
---|
[20] | 15 |
|
---|
[319] | 16 | . $TOOLHOME/common-env
|
---|
| 17 |
|
---|
[20] | 18 | # Should not be modified below
|
---|
[265] | 19 | dname=`dirname $0`
|
---|
[20] | 20 |
|
---|
[319] | 21 | # TBD
|
---|
| 22 | export TOPDIR=${BASE}/debs
|
---|
[318] | 23 | mkdir -p ${TOPDIR}
|
---|
[20] | 24 |
|
---|
[319] | 25 | if [ -e /etc/debian-release ]; then
|
---|
| 26 | export ddir="debian"
|
---|
| 27 | export dver=`awk '{print $4}' /etc/debian-release`
|
---|
[316] | 28 | export suf=".`echo $dver | sed 's/\.//'`mdk"
|
---|
[54] | 29 | fi
|
---|
[60] | 30 |
|
---|
| 31 | if [ _"$suf" = _"" ]; then
|
---|
[313] | 32 | export suf=".${ddir}${dver}"
|
---|
[60] | 33 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.