changeset 9170:81a755db4db4

pass xvf to tar instead of -x -v -f
author Peter O'Gorman <pogma@thewrittenword.com>
date Mon, 04 May 2009 15:34:28 -0400
parents b1e82cc8a9f3
children 7500cfff4728
files scripts/ChangeLog scripts/miscellaneous/tar.m scripts/miscellaneous/unpack.m
diffstat 3 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon May 04 15:11:31 2009 -0400
+++ b/scripts/ChangeLog	Mon May 04 15:34:28 2009 -0400
@@ -1,3 +1,8 @@
+2009-05-04  Peter O'Gorman  <pogma@thewrittenword.com>
+
+	* miscellaneous/tar.m, miscellaneous/unpack.m:
+	Pass "xvf" to tar instead of "-x -v -f".
+
 2009-04-30  Ben Abbott <bpabbott@mac.com>
 
 	* plot/__gnuplot_has_feature__.m: Change version for 
--- a/scripts/miscellaneous/tar.m	Mon May 04 15:11:31 2009 -0400
+++ b/scripts/miscellaneous/tar.m	Mon May 04 15:34:28 2009 -0400
@@ -46,7 +46,7 @@
 
     if (ischar (tarfile) && iscellstr (files) && ischar (root))
 
-      cmd = sprintf ("tar -c -v -f %s -C %s %s", tarfile, root,
+      cmd = sprintf ("tar cvf %s -C %s %s", tarfile, root,
 		     sprintf (" %s", files{:}));
 
       [status, output] = system (cmd);
--- a/scripts/miscellaneous/unpack.m	Mon May 04 15:11:31 2009 -0400
+++ b/scripts/miscellaneous/unpack.m	Mon May 04 15:34:28 2009 -0400
@@ -127,15 +127,15 @@
 		       "bzip2 -d \"%s\"", ...
 		       @__parse_bzip2__, true};
     commandlist.bz = commandlist.bz2;
-    commandlist.tar = {"tar -x -v -f \"%s\"", ...
-		       "tar -x -f \"%s\"", ...
+    commandlist.tar = {"tar xvf \"%s\"", ...
+		       "tar xf \"%s\"", ...
 		       @__parse_tar__, false};
-    commandlist.targz = {"gzip -d -c \"%s\" | tar -x -v -f -", ...
-			 "gzip -d -c \"%s\" | tar -x -f -", ...
+    commandlist.targz = {"gzip -d -c \"%s\" | tar xvf -", ...
+			 "gzip -d -c \"%s\" | tar xf -", ...
 			 @__parse_tar__, false};
     commandlist.tgz = commandlist.targz;
-    commandlist.tarbz2 = {"bzip2 -d -c \"%s\" | tar -x -v -f -", ...
-			  "bzip2 -d -c \"%s\" | tar -x -f -", ...
+    commandlist.tarbz2 = {"bzip2 -d -c \"%s\" | tar xvf -", ...
+			  "bzip2 -d -c \"%s\" | tar xf -", ...
 			  @__parse_tar__, false};
     commandlist.tarbz = commandlist.tarbz2;
     commandlist.tbz2 = commandlist.tarbz2;