source: MondoRescue/branches/stable/tools/deb-env@ 531

Last change on this file since 531 was 530, checked in by bcornec, 18 years ago

Build process reviewed once more :
gentoo integration
slackware integration
mkqemu should only work with tar files, and not SVN (ease VM build and time in build process)
To be continued

DOES NOT WORK AT THE MOMENT

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 632 bytes
RevLine 
[20]1#!/bin/bash
2#
[319]3# Creates deb environment from SVN repository
[33]4#
5# $Id: deb-env 530 2006-05-08 15:31:14Z bcornec $
6#
[20]7
[319]8dname=`dirname $0`
9prem=`echo $dname |cut -c1`
10if [ ${prem} == "/" ]; then
11 export TOOLHOME=$dname
12else
13 export TOOLHOME=${PWD}/$dname
14fi
[20]15
[319]16. $TOOLHOME/common-env
17
[20]18# Should not be modified below
[265]19dname=`dirname $0`
[20]20
[530]21
[319]22# TBD
23export TOPDIR=${BASE}/debs
[318]24mkdir -p ${TOPDIR}
[530]25export opt=""
26export pkg=""
27export ARCH=""
[20]28
[319]29if [ -e /etc/debian-release ]; then
[530]30 export dfam="debian"
[319]31 export ddir="debian"
32 export dver=`awk '{print $4}' /etc/debian-release`
[316]33 export suf=".`echo $dver | sed 's/\.//'`mdk"
[54]34fi
[60]35
36if [ _"$suf" = _"" ]; then
[313]37 export suf=".${ddir}${dver}"
[60]38fi
Note: See TracBrowser for help on using the repository browser.