source: branches/2.06/tools/deb-env @ 319

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