source: MondoRescue/trunk/tools/common-env@ 3656

Last change on this file since 3656 was 900, checked in by Bruno Cornec, 17 years ago

Huge patch to introduce low level functions that will bw used everywhere (mr_free, mr_asprintf, ...)
Nearly linking now due to that.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 365 bytes
Line 
1#!/bin/bash
2#
3# Creates common environment
4#
5# $Id: common-env 900 2006-10-24 06:49:18Z bruno $
6#
7
8# Adapt to your needs
9d=`dirname ${TOOLHOME}`
10if [ _"`basename ${d}/..`" = _"trunk" ]; then
11 BASE=${TOOLHOME}/../..
12else
13 BASE=${TOOLHOME}/../../..
14fi
15export TOPDIR=${BASE}/delivery
16mkdir -p ${TOPDIR}
17
18export TMPDIR=/tmp
19export MONDOTMP=`mktemp -d $TMPDIR/mondobuild.XXXXXXXXXX`
20mkdir -p $MONDOTMP
21
22umask 022
Note: See TracBrowser for help on using the repository browser.