source: dassbuild/trunk/usr/bin/dassbuild_wrapper.sh@ 1085

Last change on this file since 1085 was 762, checked in by joergs, on Jun 12, 2009 at 6:24:00 PM

set keyword Id

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 601 bytes
Line 
1#!/bin/sh
2
3BUILD_CMD=build
4
5if [ $# -eq 1 ]; then
6 # Datei mit den Variablen fuer den build-Prozess einlesen
7 if [ -r $1 ]; then
8 . $1
9 [ -n "$BUILD_ROOT" ] && export BUILD_ROOT
10 [ -n "$BUILD_DIST" ] && export BUILD_DIST
11 [ -n "$BUILD_RPMS" ] && export BUILD_RPMS
12 [ -n "$BUILD_PLACE" ] && [ -d $BUILD_PLACE ] && cd $BUILD_PLACE
13 if [ -n "$EXTRA_RPMS" ]; then
14 $BUILD_CMD $BUILD_MODE -X "$EXTRA_RPMS"
15 else
16 $BUILD_CMD $BUILD_MODE
17 fi
18 else
19 echo "File $1 not readable"
20 exit 3
21 fi
22else
23 echo "usage: `basename $0` <file for build-definitions>"
24 exit 2
25fi
26
27# vim: sw=4 ts=4 noautoindent
Note: See TracBrowser for help on using the repository browser.