#!/bin/sh ## # NAME # mtotmp # # SYNOPSIS # mtotmp package version release [variant] # # VERSION # 1.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 # Determine if /tmo is on same drive as $DEVDIR cd $DEVDIR cnt=$(pwd -P | grep -c "Volumes") # Move to /tmp directory if [ $cnt -gt "0" ]; then rm -Rf /tmp/$1-$2 cp -R $DEVDIR/$1/$1-$2 /tmp else mv -f $DEVDIR/$1/$1-$2 /tmp fi