source: branches/2.0.8/tools/deb-env @ 535

Last change on this file since 535 was 535, checked in by bcornec, 14 years ago

merge -r 526:530 $SVN_M/branches/stable

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 632 bytes
Line 
1#!/bin/bash
2#
3# Creates deb environment from SVN repository
4#
5# $Id: deb-env 535 2006-05-11 23:58:09Z 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
22# TBD
23export TOPDIR=${BASE}/debs
24mkdir -p ${TOPDIR}
25export opt=""
26export pkg=""
27export ARCH=""
28
29if [ -e /etc/debian-release ]; then
30    export dfam="debian"
31    export ddir="debian"
32    export dver=`awk '{print $4}' /etc/debian-release`
33    export suf=".`echo $dver | sed 's/\.//'`mdk"
34fi
35
36if [ _"$suf" = _"" ]; then
37    export suf=".${ddir}${dver}"
38fi
Note: See TracBrowser for help on using the repository browser.