#!/bin/ksh

# GetTempDirPath.ksh
# Chieh Cheng
# 2008-04-03
# http://www.CynosureX.com/

# GNU General Public License (GPL), Version 2, June 1991

scriptName=`echo $0 | sed s/\\\\/.*\\\\///g`

showUsage ()
{
  echo "  Usage:   $scriptName \"prefix\" [\"suffix\"] [\"directory\"]"
}

if [ $# -lt 1 ] || [ $# -gt 3 ]
then
  showUsage
else
  scriptPath=`dirname "$0"`
  pName=`${scriptPath}/GetTempPathName.ksh $@`
  rm "${pName}"
  mkdir "${pName}"
  echo "${pName}"
fi
