source: trunk/tools/deb-env @ 518

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

merge -r316:319 $SVN_M/branches/2.06

  • 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 320 2006-01-14 23:29: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.