annotate build_packages.m @ 4184:fc1bee8ff2d4

of-sparsersb: update to v1.0.1 * src/librsb.mk: update version, checksum to rc4. * src/of-sparsersb.mk: update version, checksum to 1.0.1 * src/librsb-1-nobzero.patch: remove patch * src/of-sparsersb-1-cross-build.patch: remove patch * src/of-sparsersb-1-fixes.patch: new patch * dist-files.mk: add of-sparsersb-1-fixes.patch * build_packages.m: update sparsersb version
author John D
date Sun, 07 Aug 2016 19:38:56 -0400
parents be6b10b6faf5
children 8e40067cad8b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
1 % attempt to compile and install the octave packages
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
2
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
3 orig_echo = echo_executing_commands ();
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
4 orig_more = page_screen_output();
3726
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
5
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
6 % helper function to try install a package, and recover
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
7 function try_install (pkgname)
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
8 currdir = pwd ();
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
9
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
10 try
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
11 pkg ('install', pkgname, '-noauto')
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
12 catch err
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
13 warning (err.identifier, err.message);
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
14 end_try_catch
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
15
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
16 cd (currdir);
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
17 endfunction
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
18
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
19 unwind_protect
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
20
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
21 more ("off");
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
22 echo ("on");
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
23
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
24 % cd to script directory as the packages files are in the same place
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
25 [packagedir] = fileparts(mfilename("fullpathext"));
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
26 if length(packagedir) > 0
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
27 cd(packagedir);
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
28 endif
3726
1166dbbbe15c build_packages.m: add helper function to install packages
John Donoghue
parents: 3724
diff changeset
29
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
30 % install the packages
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
31 try_install general-2.0.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
32 try_install miscellaneous-1.2.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
33 try_install struct-1.0.13.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
34 try_install optim-1.5.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
35 try_install specfun-1.1.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
36 try_install control-3.0.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
37 try_install signal-1.3.2.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
38 try_install communications-1.2.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
39 try_install image-2.4.1.tar.gz
4171
30806338a509 of-io: update to 2.4.2
John Donoghue
parents: 4170
diff changeset
40 try_install io-2.4.2.tar.gz
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
41 try_install statistics-1.2.4.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
42 try_install geometry-2.1.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
43 try_install windows-1.2.3.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
44 try_install odepkg-0.8.5.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
45 try_install linear-algebra-2.2.2.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
46 try_install sockets-1.2.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
47 try_install zenity-0.5.7.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
48 try_install data-smoothing-1.3.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
49 try_install fuzzy-logic-toolkit-0.4.5.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
50 try_install quaternion-2.4.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
51 try_install fits-1.0.7.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
52 try_install tsa-4.4.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
53 try_install dicom-0.1.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
54 try_install netcdf-1.0.11.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
55 try_install ltfat-2.1.2.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
56 try_install database-2.4.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
57 try_install instrument-control-0.2.2.tar.gz
4175
cc348b770c37 of-generate_html: update to 0.1.12
John Donoghue
parents: 4171
diff changeset
58 try_install generate_html-0.1.12.tar.gz
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
59 try_install financial-0.5.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
60 try_install stk-2.3.4.tar.gz
4155
0f11fc976b10 of-splines: update to 1.3.1
John Donoghue
parents: 4154
diff changeset
61 try_install splines-1.3.1.tar.gz
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
62 try_install dataframe-1.1.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
63 try_install lssa-0.1.2.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
64 try_install queueing-1.2.3.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
65 try_install nurbs-1.3.10.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
66 try_install strings-1.2.0.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
67 try_install ga-0.10.0.tar.gz
4156
600b1ae96027 of-interval: update to v1.5.0
John Donoghue
parents: 4155
diff changeset
68 try_install interval-1.5.0.tar.gz
4182
be6b10b6faf5 of-nan: update to 3.0.2
John D
parents: 4175
diff changeset
69 try_install nan-3.0.2.tar.gz
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
70 try_install ocs-0.1.5.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
71 try_install mapping-1.2.1.tar.gz
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
72 try_install tisean-0.2.3.tar.gz
4184
fc1bee8ff2d4 of-sparsersb: update to v1.0.1
John D
parents: 4182
diff changeset
73 try_install sparsersb-1.0.1.tar.gz
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
74 try_install video-1.2.2.tar.gz
4169
f479c436e703 of-zeromq: update to 1.2.1
John Donoghue
parents: 4157
diff changeset
75 try_install zeromq-1.2.1.tar.gz
4154
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
76
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
77 unwind_protect_cleanup
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
78 echo_executing_commands (orig_echo);
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
79 page_screen_output(orig_more);
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
80 clear ("orig_echo", "orig_more");
84a6afd1c632 build_packages.m: restore more and echo state after running build script
John Donoghue
parents: 4148
diff changeset
81 end_unwind_protect