fixed patch and instructions
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 19 Sep 2016 01:28:19 +0000 (01:28 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 19 Sep 2016 01:28:19 +0000 (01:28 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2877 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/cml.patch
codec2-dev/octave/ldpc.m

index d5ba3205768bbe8d853c7788d52bcc334e956db8..cb517a452e7c2eff071c3bde04840c7d2613c758 100644 (file)
@@ -1,24 +1,31 @@
-diff -ruN -x '*.o' -x '*.dll' -x '*.mex' -x '*.mat' cml-orig/CmlStartup.m cml/CmlStartup.m
 --- cml-orig/CmlStartup.m      2007-09-08 23:12:26.000000000 +0930
-+++ cml/CmlStartup.m   2015-09-04 07:21:14.218455223 +0930
++++ cml/CmlStartup.m   2016-09-19 10:30:08.673767127 +0930
+@@ -20,7 +20,7 @@
+     addpath( strcat( cml_home, '\mex'), ...\r
+         strcat( cml_home, '\mat'), ...\r
+         strcat( cml_home, '\matalt' ), ...\r
+-        strcat( cml_home, '\mexhelp'), ...\r
++        %strcat( cml_home, '\mexhelp'), ...\r
+         strcat( cml_home, '\demos' ), ...\r
+         strcat( cml_home, '\scenarios'), ...\r
+         strcat( cml_home, '\localscenarios'),...\r
 @@ -41,7 +41,7 @@
-     addpath( strcat( cml_home, '/mex'), ...
-         strcat( cml_home, '/mat'), ...
-         strcat( cml_home, '/matalt' ), ...
--        strcat( cml_home, '/mexhelp'), ...
-+        %strcat( cml_home, '/mexhelp'), ...
-         strcat( cml_home, '/demos' ), ...
-         strcat( cml_home, '/scenarios'), ...
-         strcat( cml_home, '/localscenarios'),...
+     addpath( strcat( cml_home, '/mex'), ...\r
+         strcat( cml_home, '/mat'), ...\r
+         strcat( cml_home, '/matalt' ), ...\r
+-        strcat( cml_home, '/mexhelp'), ...\r
++        %strcat( cml_home, '/mexhelp'), ...\r
+         strcat( cml_home, '/demos' ), ...\r
+         strcat( cml_home, '/scenarios'), ...\r
+         strcat( cml_home, '/localscenarios'),...\r
 @@ -59,4 +59,4 @@
-     save_directory = strcat( cml_home, '/scenarios/CmlHome.mat' );
- end
+     save_directory = strcat( cml_home, '/scenarios/CmlHome.mat' );\r
+ end\r
\r
 -save( save_directory, save_flag, 'cml_home' );
 \ No newline at end of file
-+save( save_directory, save_flag, 'cml_home' );
-diff -ruN -x '*.o' -x '*.dll' -x '*.mex' -x '*.mat' cml-orig/source/matrix.h cml/source/matrix.h
++save( save_directory, save_flag, 'cml_home' );\r
 --- cml-orig/source/matrix.h   1970-01-01 09:30:00.000000000 +0930
-+++ cml/source/matrix.h        2015-09-04 07:06:46.907248420 +0930
++++ cml/source/matrix.h        2016-09-19 10:25:58.009761169 +0930
 @@ -0,0 +1 @@
 +#include <mex.h>
index 38713031a0c6385909024b9548b725672cd51204..1151adfd254c39ee8a546199115c0f2c9906acf7 100644 (file)
@@ -9,10 +9,11 @@
 % $ sudo apt-get install liboctave-dev
 % $ wget http://www.iterativesolutions.com/user/image/cml.1.10.zip
 % $ unzip cml.1.10.zip
-% $ patch < ~/codec2-dev/octave/cml.patch
-% $ cd source
+% $ patch -p0 < ~/codec2-dev/octave/cml.patch
+% $ cd cml/source
 % $ octave
 % octave:> make
+% (you'll see a few warnings but hopefully no errors)
 
 1;