From 6c3ca93231d1c7eb28a2fb721e46b4db1dab4eae Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Thu, 16 Jul 2015 16:51:04 -0500 Subject: [PATCH] Create a separate directory for simulation compiliation. sometimes convert_swig is the first to process a file and it needs to be able to create the output directory for its output. The output directory should use perl's make_path because the output directories are deep down in the build area. refs #80 --- libexec/trick/convert_swig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/trick/convert_swig b/libexec/trick/convert_swig index 37ae5e96..18e52caf 100755 --- a/libexec/trick/convert_swig +++ b/libexec/trick/convert_swig @@ -13,6 +13,7 @@ use gte ; use get_headers ; use trick_version ; use Digest::MD5 qw(md5_hex) ; +use File::Path qw(make_path) ; ## ## ================================================================================ @@ -431,7 +432,7 @@ sub process_file($$) { $out_file = "$out_dir/$out_file" ; if ( ! -e $out_dir ) { - mkdir $out_dir ; + make_path($out_dir) ; } ## Open the SWIG interface file.