Commit cc15e8f7 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

osx compilation/package creation

parent 1dabbd88
% Copyright (C) 2011 Dynare Team
%
% This file is part of Dynare.
%
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
configstr = ['./configure --with-boost=' [cd '/src/boost_1_45_0'] ...
' --with-matlab=' matlabroot ' MATLAB_VERSION=' version('-release')];
cd src/mex/build/matlab;
system(configstr, '-echo');
system('make', '-echo');
cd ../../../..
!cp src/mex/matlab/* mex/matlab/
clear all
\ No newline at end of file
# 64 bit
./configure --with-matlab=/Volumes/MacPackages/Applications/MATLAB_R2009b.app MATLAB_VERSION=7.9
#32 bit < 7.5
./configure CFLAGS='-arch i386' CXXFLAGS='-arch i386' FFLAGS='-arch i386' LDFLAGS='-arch i386' --with-matlab=/Volumes/MacPackages/Applications/R2007a MATLAB_VERSION=7.4
#32 bit 7.5 & up
./configure CFLAGS='-arch i386' CXXFLAGS='-arch i386' FFLAGS='-arch i386' LDFLAGS='-arch i386' --with-matlab=/Volumes/MacPackages/Applications/MATLAB_R2009b_32bit/MATLAB_R2009b.app MATLAB_VERSION=7.9
This diff is collapsed.
<pkgref spec="1.12" uuid="66C2C542-B090-43DB-8FA9-872786A8CE4B"><config><identifier>com.dynare.4.2.2.pkg</identifier><version>4.2.2</version><description/><post-install type="none"/><requireAuthorization/><installFrom>/Users/Houtan/Documents/DYNARE/packages/tmp/dynare-4.2.2</installFrom><installTo mod="true" relocatable="true">/Applications/Dynare/4.2.2</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"/><mod>installTo</mod><mod>relocatable</mod><mod>requireAuthorization</mod><mod>identifier</mod><mod>version</mod><mod>parent</mod><mod>installTo.path</mod></config><contents><file-list>01dynare-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref>
\ No newline at end of file
<pkmkdoc spec="1.12"><properties><title>Dynare 4.2.2</title><build>/Users/Houtan/Documents/DYNARE/packages/tmp/dynare-4.2.2.pkg</build><organization>com.dynare</organization><userSees ui="both"/><min-target os="3"/><domain anywhere="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><description>Dynare 4.2.2</description><contents><choice title="dynare-4.2.2" id="choice0" tooltip="Dynare 4.2.2" description="Dynare 4.2.2" starts_selected="true" starts_enabled="true" starts_hidden="false"><customLoc mod="true" allowAltVol="true">/Applications/Dynare/4.2.2</customLoc><pkgref id="com.dynare.4.2.2.pkg"/></choice></contents><resources bg-scale="proportional" bg-align="bottomleft"><locale lang="en"><resource mod="true" type="background">/Users/Houtan/Downloads/dynareblue.png</resource><resource mime-type="text/rtf" kind="embedded" type="license"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf100
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
\f0\fs26 \cf0 Dynare is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\
\
Dynare is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\
\
You should have received a copy of the GNU General Public License along with Dynare. If not, see <http://www.gnu.org/licenses/>.}]]></resource></locale></resources><flags/><item type="file">01dynare.xml</item><mod>properties.title</mod><mod>properties.customizeOption</mod><mod>description</mod></pkmkdoc>
\ No newline at end of file
......@@ -3,11 +3,8 @@
#
# BEGIN EDIT
#
DYNAREV=4.3-unstable
TOPDIR=..
VIRGINTOPDIR=../../untouchedDynare430/dynare-4.3-unstable
DOCDIR=doc
DYNPPDIR=dynare++
DYNAREV=4.2.2
TOPDIR=../dynare-4.2.2
#
# END EDIT
#
......@@ -19,30 +16,14 @@ mkdir $INSTALDIR
#
# TOP LEVEL
#
cp build_dynare.m $INSTALDIR
cp $TOPDIR/dynare.el $INSTALDIR
cp $TOPDIR/license.txt $INSTALDIR
#
# SRC
#
mkdir "$INSTALDIR/src"
mkdir "$INSTALDIR/src/preprocessor"
cp -r boost_1_45_0 $INSTALDIR/src
cp -r $VIRGINTOPDIR/dynare++ $INSTALDIR/src
cp -r $VIRGINTOPDIR/m4 $INSTALDIR/src
cp -r $VIRGINTOPDIR/mex $INSTALDIR/src
cp $TOPDIR/mex/build/matlab/configure.ac $INSTALDIR/src/mex/build/matlab
cp $VIRGINTOPDIR/preprocessor/CodeInterpreter.hh $INSTALDIR/src/preprocessor
rm -rf $INSTALDIR/src/mex/octave
rm -rf $INSTALDIR/src/mex/build/octave
#
# MATLAB
#
cp -r $VIRGINTOPDIR/matlab $INSTALDIR
cp -r $TOPDIR/matlab $INSTALDIR
cp $TOPDIR/preprocessor/dynare_m $INSTALDIR/matlab
......@@ -50,7 +31,9 @@ cp $TOPDIR/preprocessor/dynare_m $INSTALDIR/matlab
# MEX
#
mkdir "$INSTALDIR/mex"
mkdir "$INSTALDIR/mex/matlab"
# Matlab
cp -r $TOPDIR/mex/matlab $INSTALDIR/mex
# Octave
mkdir "$INSTALDIR/mex/octave"
......@@ -58,13 +41,18 @@ cp $TOPDIR/mex/build/octave/bytecode/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/dynare_simul_/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/gensylv/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/k_order_perturbation/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/kalman_steady_state/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/kronecker/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/mjdgges/*.mex $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/ordschur/*.oct $INSTALDIR/mex/octave
cp $TOPDIR/mex/build/octave/qzcomplex/*.oct $INSTALDIR/mex/octave
#
# EXAMPLES
#
cp -r $TOPDIR/examples $INSTALDIR/
#
# DYNARE++
#
......@@ -79,30 +67,27 @@ cp $TOPDIR/dynare++/extern/matlab/dynare_simul.m $INSTALDIR/dynare++
# pdf (dynare)
mkdir "$INSTALDIR/doc"
cp $DOCDIR/bvar-a-la-sims.pdf $INSTALDIR/doc
cp $DOCDIR/dr.pdf $INSTALDIR/doc
cp $DOCDIR/dynare.pdf $INSTALDIR/doc
cp $DOCDIR/guide.pdf $INSTALDIR/doc
cp $DOCDIR/macroprocessor/macroprocessor.pdf $INSTALDIR/doc
cp $DOCDIR/parallel/parallel.pdf $INSTALDIR/doc
cp $DOCDIR/preprocessor/preprocessor.pdf $INSTALDIR/doc
cp $DOCDIR/userguide/UserGuide.pdf $INSTALDIR/doc
cp $TOPDIR/doc/bvar-a-la-sims.pdf $INSTALDIR/doc
cp $TOPDIR/doc/dr.pdf $INSTALDIR/doc
cp $TOPDIR/doc/dynare.pdf $INSTALDIR/doc
cp $TOPDIR/doc/guide.pdf $INSTALDIR/doc
cp $TOPDIR/doc/macroprocessor/macroprocessor.pdf $INSTALDIR/doc
cp $TOPDIR/doc/parallel/parallel.pdf $INSTALDIR/doc
cp $TOPDIR/doc/preprocessor/preprocessor.pdf $INSTALDIR/doc
cp $TOPDIR/doc/userguide/UserGuide.pdf $INSTALDIR/doc
# html
mkdir "$INSTALDIR/doc/dynare.html"
cp -r $DOCDIR/dynare.html/*.png $INSTALDIR/doc/dynare.html
cp -r $DOCDIR/dynare.html/*.html $INSTALDIR/doc/dynare.html
cp -r $TOPDIR/doc/dynare.html/*.png $INSTALDIR/doc/dynare.html
cp -r $TOPDIR/doc/dynare.html/*.html $INSTALDIR/doc/dynare.html
# pdf (dynare++)
mkdir "$INSTALDIR/doc/dynare++"
cp $DYNPPDIR/doc/dynare++-tutorial.pdf $INSTALDIR/doc/dynare++
cp $DYNPPDIR/doc/dynare++-ramsey.pdf $INSTALDIR/doc/dynare++
cp $DYNPPDIR/sylv/sylvester.pdf $INSTALDIR/doc/dynare++
cp $DYNPPDIR/tl/cc/tl.pdf $INSTALDIR/doc/dynare++
cp $DYNPPDIR/integ/cc/integ.pdf $INSTALDIR/doc/dynare++
cp $DYNPPDIR/kord/kord.pdf $INSTALDIR/doc/dynare++
#
# EXAMPLES
#
cp -r $VIRGINTOPDIR/examples $INSTALDIR/
\ No newline at end of file
cp $TOPDIR/dynare++/doc/dynare++-tutorial.pdf $INSTALDIR/doc/dynare++
cp $TOPDIR/dynare++/doc/dynare++-ramsey.pdf $INSTALDIR/doc/dynare++
cp $TOPDIR/dynare++/sylv/sylvester.pdf $INSTALDIR/doc/dynare++
cp $TOPDIR/dynare++/tl/cc/tl.pdf $INSTALDIR/doc/dynare++
cp $TOPDIR/dynare++/integ/cc/integ.pdf $INSTALDIR/doc/dynare++
cp $TOPDIR/dynare++/kord/kord.pdf $INSTALDIR/doc/dynare++
./removeDsStore.sh
\ No newline at end of file
#!/bin/bash
# remove .DS_Store files
find . -name *.DS_Store -type f -exec rm {} \;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment