delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/01/30/13:09:13

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f
Date: Wed, 30 Jan 2002 11:44:09 -0600
From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
To: djgpp-workers AT delorie DOT com
Subject: djtar patch
Message-ID: <20020130114409.D4099@kendall.sfbr.org>
Mail-Followup-To: djgpp-workers AT delorie DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i
Reply-To: djgpp-workers AT delorie DOT com

The tarchange.lst file produced by `djtar -x' contains
entries of the form

	old_filename -> new_filename

If the `->' were not written, any resulting `tarchange.lst'
file could be used without modification as the ChangeFile
argument to the djtar `-n' option in a future djtar -x.

What do others think about this?


% diff -u djtar.old djtar.c
--- djtar.old   Fri Oct  5 15:52:50 2001
+++ djtar.c     Wed Jan 30 11:34:41 2002
@@ -164,7 +164,7 @@
 {
   CHANGE *c;
   for (c=change_root; c; c=c->next)
-    fprintf(change_file, "%s -> %s\n", c->old, c->new);
+    fprintf(change_file, "%s %s\n", c->old, c->new);
 }
 
 int

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019