source: MondoRescue/branches/stable/tools/common-env@ 882

Last change on this file since 882 was 882, checked in by Bruno Cornec, 18 years ago
  • Build process reviewed to fix again bug #79
  • MONDOTMP now used uniformaly across all scripts
  • mandriva has its own set of variables
  • svn2build should now generate directories in the right place
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 365 bytes
RevLine 
[20]1#!/bin/bash
2#
[549]3# Creates common environment
[33]4#
5# $Id: common-env 882 2006-10-08 09:48:30Z bruno $
6#
[20]7
8# Adapt to your needs
[872]9d=`dirname ${TOOLHOME}`
10if [ _"`basename ${d}/..`" = _"trunk" ]; then
11 BASE=${TOOLHOME}/../..
12else
13 BASE=${TOOLHOME}/../../..
14fi
15export TOPDIR=${BASE}/delivery
[547]16mkdir -p ${TOPDIR}
[882]17
[727]18export TMPDIR=/tmp
[882]19export MONDOTMP=`mktemp -d $TMPDIR/mondobuild.XXXXXXXXXX`
20mkdir -p $MONDOTMP
[629]21
22umask 022
Note: See TracBrowser for help on using the repository browser.