[Pkg-octave-commit] r2970 - in dynare/trunk/debian: . patches

Sébastien Villemot sebastien-guest at alioth.debian.org
Thu Apr 23 10:11:38 UTC 2009


Author: sebastien-guest
Date: 2009-04-23 10:11:37 +0000 (Thu, 23 Apr 2009)
New Revision: 2970

Added:
   dynare/trunk/debian/patches/extra-addpath
Modified:
   dynare/trunk/debian/patches/series
   dynare/trunk/debian/rules
Log:
Added a symlink from Octave's local dir to dynare.m

Added: dynare/trunk/debian/patches/extra-addpath
===================================================================
--- dynare/trunk/debian/patches/extra-addpath	                        (rev 0)
+++ dynare/trunk/debian/patches/extra-addpath	2009-04-23 10:11:37 UTC (rev 2970)
@@ -0,0 +1,11 @@
+--- a/matlab/dynare.m
++++ b/matlab/dynare.m
+@@ -33,6 +33,8 @@
+ % You should have received a copy of the GNU General Public License
+ % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+ 
++addpath /usr/share/dynare/matlab
++
+ warning_config
+ 
+ if exist('OCTAVE_VERSION')

Modified: dynare/trunk/debian/patches/series
===================================================================
--- dynare/trunk/debian/patches/series	2009-04-15 15:29:43 UTC (rev 2969)
+++ dynare/trunk/debian/patches/series	2009-04-23 10:11:37 UTC (rev 2970)
@@ -1,2 +1,3 @@
+extra-addpath # Add an extra addpath at the top of dynare.m for making the $(MDIR) symlink work
 fhs-compliance # Modifies dynare_config.m to reflect FHS compliance of the package
 bashisms-in-makefiles

Modified: dynare/trunk/debian/rules
===================================================================
--- dynare/trunk/debian/rules	2009-04-15 15:29:43 UTC (rev 2969)
+++ dynare/trunk/debian/rules	2009-04-23 10:11:37 UTC (rev 2970)
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/quilt/quilt.make
+include /usr/share/octave/debian/defs.make
 
 build: patch build-stamp
 build-stamp:
@@ -35,7 +36,9 @@
 	dh binary-arch
 
 binary-indep: build
-	dh binary-indep
+	dh binary-indep --before dh_link
+	dh_link --package=dynare-common /usr/share/dynare/matlab/dynare.m $(MDIR)/dynare.m
+	dh binary-indep --after dh_link
 
 binary: binary-arch binary-indep
 




More information about the Pkg-octave-commit mailing list