changeset 3459:bc0e6c5189cd

build_packages.m: cd to src folder to install src packages * build_packages.m: cd to folder where build_packages.m is to install the .tar.gz packages.
author John Donoghue <john.donoghue@ieee.org>
date Mon, 27 Jan 2014 20:50:22 -0500
parents 608931797a53
children 369b21249f13
files build_packages.m
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build_packages.m	Mon Jan 27 19:49:49 2014 -0500
+++ b/build_packages.m	Mon Jan 27 20:50:22 2014 -0500
@@ -1,5 +1,11 @@
 more ("off");
 echo ("on");
+% cd to script directory as the packages files are in the same place
+[packagedir] = fileparts(mfilename("fullpathext"));
+if length(packagedir) > 0
+  cd(packagedir);
+endif
+% install the packages
 pkg install general-1.3.2.tar.gz
 pkg install miscellaneous-1.2.0.tar.gz
 pkg install struct-1.0.10.tar.gz