From f0e43f8aa398fed2636a473ba5292065b7ade22e Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan.bastani@ens.fr>
Date: Mon, 25 Jun 2012 16:22:27 +0200
Subject: [PATCH] fix bug in osx packaging script

---
 osx/createOsxFolderForPkg.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/osx/createOsxFolderForPkg.sh b/osx/createOsxFolderForPkg.sh
index 2ea28a50a4..d429886b63 100755
--- a/osx/createOsxFolderForPkg.sh
+++ b/osx/createOsxFolderForPkg.sh
@@ -37,9 +37,6 @@ cp $TOP_DYN_DIR/scripts/dynare.el                                $INSTALLDIR/scr
 cp $TOP_DYN_DIR/license.txt                                      $INSTALLDIR
 cp $TOP_DYN_DIR/NEWS                                             $INSTALLDIR
 
-# Matlab
-cp -r $TOP_DYN_DIR/matlab                                        $INSTALLDIR
-
 # TZ Matlab
 cp -r $TOP_DYN_DIR/contrib/ms-sbvar/TZcode/MatlabFiles           $INSTALLDIR/contrib/ms-sbvar/TZcode
 
@@ -54,6 +51,9 @@ cp -r $TOP_DYN_DIR/examples                                      $INSTALLDIR
 make pdf
 make
 
+# Matlab
+# Must come after configure because matlab/dynare_version.m is created by configure script
+cp -r $TOP_DYN_DIR/matlab                                        $INSTALLDIR
 
 ########################
 # MAKE BULK OF PACKAGE #
-- 
GitLab