From a1746650cc5c177dd8b8f7c60437e3f39ce257c0 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Mon, 18 Oct 2004 19:52:29 +0000 Subject: [PATCH] Check for destination directory existing. --- bin/install_tsc.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/install_tsc.in b/bin/install_tsc.in index 6071ff9ee..45af6e287 100755 --- a/bin/install_tsc.in +++ b/bin/install_tsc.in @@ -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