Check for destination directory existing.
This commit is contained in:
parent
b27d802776
commit
a1746650cc
1 changed files with 7 additions and 1 deletions
|
|
@ -11,7 +11,13 @@ if test $# -ne 2 ; then
|
|||
fi
|
||||
lh=$1
|
||||
INCDIR=$2
|
||||
th=$(INCDIR)/"$${lh}" ;
|
||||
#
|
||||
# If the destination directory doesn't exist yet, create it
|
||||
#
|
||||
if test ! -d $INCDIR ; then
|
||||
@INSTALL@ -d $INCDIR
|
||||
fi
|
||||
th="${INCDIR}"/"${lh}" ;
|
||||
if test ! -f "${lh}" ; then
|
||||
echo 'install_ts ERROR: the file, ' ${lh} ', does not exist'
|
||||
exit -1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue