#!/bin/bash ## # NAME # mconfigure # # SYNOPSIS # mconfigure package version release [variant] # # VERSION # 5.0.0 # 20060205 ## # Variables . $DEVDIR/etc/os.dat . $DEVDIR/etc/def.dat if [ -e $DEVDIR/$1/$1$4.port ]; then . $DEVDIR/$1/$1$4.port else . $DEVDIR/$1/$1.port fi # Move to /tmp directory cd /tmp/$1-$2$BUILDDIR # Configure LEN=$(echo $CONFIGUREENV | awk '{ print NF }') if [ $LEN -gt 0 ]; then echo export $CONFIGUREENV eval "export $CONFIGUREENV" fi echo $CONFIGURECMD $CONFIGUREARGS $CONFIGURECMD $CONFIGUREARGS RC=$? exit $RC