Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
11b563d1
Commit
11b563d1
authored
12 years ago
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
os x package creation: misc fixes
parent
19697b09
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
osx/createOsxFolderForPkg.sh
+11
-8
11 additions, 8 deletions
osx/createOsxFolderForPkg.sh
with
11 additions
and
8 deletions
osx/createOsxFolderForPkg.sh
+
11
−
8
View file @
11b563d1
#!/bin/bash
set
-ex
TOP_DIR
=
/Users/Houtan/Documents/DYNARE/PACKAGES
...
...
@@ -7,8 +6,9 @@ TOP_DYN_DIR=$TOP_DIR/dynare
VERSION
=
4.3
INSTALLDIRNAME
=
dynare-
$VERSION
-osx
mkdir
$INSTALLDIRNAME
INSTALLDIR
=
$TOP_DIR
/
$INSTALLDIRNAME
mkdir
$INSTALLDIRNAME
########################
# UPDATE DYNARE SOURCE #
...
...
@@ -22,9 +22,9 @@ autoreconf -si
########################
# create directories
mkdir
"
$INSTALLDIR
/scripts"
mkdir
"
$INSTALLDIR
/dynare++"
mkdir
-p
"
$INSTALLDIR
/doc/dynare++"
mkdir
"
$INSTALLDIR
/doc/dynare.html"
mkdir
"
$INSTALLDIR
/dynare++"
mkdir
-p
"
$INSTALLDIR
/contrib/ms-sbvar/TZcode"
mkdir
-p
"
$INSTALLDIR
/mex/octave"
mkdir
-p
"
$INSTALLDIR
/mex/matlab/osx64"
...
...
@@ -47,7 +47,7 @@ cp -r $TOP_DYN_DIR/examples $INSTALLDIR
##########################################################
# FIRST BUILD 32 BIT EVERYTHING, 32 BIT MATLAB < 7.5 MEX #
##########################################################
./configure
FFLAGS
=
'-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -arch i386'
CPPFLAGS
=
'-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -arch i386'
LDFLAGS
=
'-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -arch i386'
--with-matlab
=
/Applications/MATLAB_OLD/R2007a
MATLAB_VERSION
=
7.4
--with-slicot
=
/usr/local32
--with-matio
=
/usr/localStatic
--with-gsl
=
/usr/localStatic
./configure
FFLAGS
=
'-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -arch i386'
CPPFLAGS
=
'-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -arch i386'
LDFLAGS
=
'-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -arch i386'
--with-matlab
=
/Applications/MATLAB_OLD/R2007a
MATLAB_VERSION
=
7.4
--with-slicot
=
/usr/local32
--disable-octave
--with-matio
=
/usr/localStatic
--with-gsl
=
/usr/localStatic
cd
$TOP_DYN_DIR
/doc
texi2dvi
--pdf
--batch
--build-dir
=
dynare.t2p dynare.texi
...
...
@@ -79,6 +79,7 @@ cp $TOP_DYN_DIR/preprocessor/dynare_m $INSTALLDIR/mat
cp
$TOP_DYN_DIR
/mex/build/matlab/block_kalman_filter/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
cp
$TOP_DYN_DIR
/mex/build/matlab/bytecode/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
cp
$TOP_DYN_DIR
/mex/build/matlab/dynare_simul_/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
cp
$TOP_DYN_DIR
/mex/build/matlab/estimation/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
cp
$TOP_DYN_DIR
/mex/build/matlab/gensylv/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
cp
$TOP_DYN_DIR
/mex/build/matlab/k_order_perturbation/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
cp
$TOP_DYN_DIR
/mex/build/matlab/kalman_steady_state/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.4
...
...
@@ -124,6 +125,7 @@ make
cp
$TOP_DYN_DIR
/mex/build/matlab/block_kalman_filter/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
cp
$TOP_DYN_DIR
/mex/build/matlab/bytecode/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
cp
$TOP_DYN_DIR
/mex/build/matlab/dynare_simul_/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
cp
$TOP_DYN_DIR
/mex/build/matlab/estimation/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
cp
$TOP_DYN_DIR
/mex/build/matlab/gensylv/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
cp
$TOP_DYN_DIR
/mex/build/matlab/k_order_perturbation/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
cp
$TOP_DYN_DIR
/mex/build/matlab/kalman_steady_state/
*
.mexmaci
$INSTALLDIR
/mex/matlab/osx32-7.5-7.11
...
...
@@ -139,13 +141,14 @@ cp $TOP_DYN_DIR/mex/build/matlab/sobol/*.mexmaci
#####################################
make clean
cd
$TOP_DYN_DIR
/mex/build/matlab
./configure
--with-matlab
=
/Applications/MATLAB_OLD/MATLAB_R2009b.app
MATLAB_VERSION
=
7.9
--with-matio
=
/usr/localStatic
--with-gsl
=
/usr/localStatic
./configure
--with-matlab
=
/Applications/MATLAB_OLD/MATLAB_R2009b.app
MATLAB_VERSION
=
7.9
MEXEXT
=
mexmaci64
--with-matio
=
/usr/localStatic
--with-gsl
=
/usr/localStatic
make
# Matlab
cp
$TOP_DYN_DIR
/mex/build/matlab/block_kalman_filter/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
cp
$TOP_DYN_DIR
/mex/build/matlab/bytecode/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
cp
$TOP_DYN_DIR
/mex/build/matlab/dynare_simul_/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
cp
$TOP_DYN_DIR
/mex/build/matlab/estimation/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
cp
$TOP_DYN_DIR
/mex/build/matlab/gensylv/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
cp
$TOP_DYN_DIR
/mex/build/matlab/k_order_perturbation/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
cp
$TOP_DYN_DIR
/mex/build/matlab/kalman_steady_state/
*
.mexmaci64
$INSTALLDIR
/mex/matlab/osx64
...
...
@@ -160,17 +163,19 @@ cp $TOP_DYN_DIR/mex/build/matlab/sobol/*.mexmaci64
#####################################
make clean
cd
$TOP_DYN_DIR
/mex/build/octave
./configure
--with-matio
=
/usr/localStatic
--with-gsl
=
/usr/localStatic
./configure
CC
=
"gcc"
CXX
=
"g++"
--with-matio
=
/usr/localStatic
--with-gsl
=
/usr/localStatic
make
# Octave
cp
$TOP_DYN_DIR
/mex/build/octave/block_kalman_filter/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/bytecode/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/dynare_simul_/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/estimation/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/gensylv/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/k_order_perturbation/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/kalman_steady_state/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/kronecker/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/linsolve/
*
.oct
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/local_state_space_iterations/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/mjdgges/
*
.mex
$INSTALLDIR
/mex/octave
cp
$TOP_DYN_DIR
/mex/build/octave/ms_sbvar/
*
.mex
$INSTALLDIR
/mex/octave
...
...
@@ -191,5 +196,3 @@ find . -name *.DS_Store -type f -exec rm {} \;
chmod
-R
g+w
$INSTALLDIR
echo
DONE
# NEED TO BUILD DYNARE.HTML DOCUMENTION ON DEBIAN
# AND INCLUDE IN DISTRIBUTION BY HAND
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment