This page describes how to build Dynare packages for official numbered releases.

1. Tagging the release

Tagging the release involves two steps:

git tag 4.x.y
git push --tags

2. Source archive

Creating the source package should be done from Linux (but can be done from Cygwin):

git clone http://www.dynare.org/git/dynare.git
git checkout 4.x.y

autoreconf -s -i
./configure
make dist

3. Windows package

All the tools needed to compile a Windows installer for Dynare are on Karaba.

The procedure is the following:

Note that the make-dynare-win-* accept an optional argument, which will be the version number associated to the package. For the unstable script, the default is current date in YYYY-MM-DD format, for the 4.2 script the default is the current stable release number.

Also note that the make-dynare-win-* don't run any git command, and will run make clean in your source tree at the beginning and at the end of the build.

4. Debian backports

The main packaging work is done by the Debian Octave Group, see the Dynare PTS page. This section explains how to backport these packages to Debian stable and upload them to the repository hosted on www.dynare.org.

4.1. Creating backport packages

You need to install the devscripts and git-buildpackage packages.

The official Debian packaging is held in the master branch. There is one additional branch for each backported distribution: squeeze-backports, etc.

The upstream branch holds the Dynare sources.

[TO BE COMPLETED]

4.2. Uploading the packages to kirikou

4.2.1. General information

Kirikou holds a Debian repository in /srv/d_kirikou/reprepro/debian. It is managed with the package reprepro. A dedicated user reprepro has been created for that purpose.

The repository has been created along the lines of http://wiki.debian.org/SettingUpSignedAptRepositoryWithReprepro

The GPG key used for signing is stored in the home directory of the reprepro user (no passphrase).

4.2.2. Preparing for upload

[kirikou-debian]
fqdn = kirikou.dynare.org
incoming = /srv/d_kirikou/reprepro/debian/incoming
method = scp
login = reprepro
allow_unsigned_uploads = 1
post_upload_command = ssh %(login)s@%(fqdn)s reprepro --basedir /srv/d_kirikou/reprepro/debian processincoming default

4.2.3. Doing an upload

/!\ Make sure that the last changelog entry in your package contains the right distribution name (and not "unstable" or a dummy value). This field is used by reprepro to determine in which distribution to put the packages. For Debian, prepend "-backports" (e.g. squeeze-backports).

Upload example for Debian:

dput kirikou-debian dynare_4.2.2-1~bpo60+1_amd64.changes

5. Mac Package

This section outlines how to create a Dynare installation package for Mac on PackageMaker v3.0.4. For a detailed description of PackageMaker options, please see the Mac Developer Connection site. For reference, a detailed pdf file from the Developer Connection site can be found here, while the .pmdoc (PackageMaker) file associated with the release of Dynare 4.1.0 can be found here.

NB: To make the Dynare executables (i.e., dynare++, preprocessor, etc.) work on 10.5, see section 6.2 of BuildingDynareFromSource.

5.1. Preparation work

5.2. The Distribution

Opening PackageMaker, create a new project with organization as com.dynare. Select the following options

Configuration tab:

Requirements tab:

Actions tab:

5.3. The Choice

Having gone to Project->Add Contents and navigating to and selecting the folder containing this distribution of Dynare, select the following options

Configuration tab:

Requirements tab:

5.4. The Package

Select the following options

Configuration tab:

Contents tab:

Components tab:

Scripts tab:

5.5. Edit Interface

This is self explanatory after you click on the Edit Interface button.

DynareWiki: BuildingPackages (last edited 2012-02-24 10:04:34 by SébastienVillemot)