gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Re: How to 'update' an updated archive?


From: Aaron Bentley
Subject: Re: [Gnu-arch-users] Re: How to 'update' an updated archive?
Date: Tue, 15 Jun 2004 17:43:16 -0400
User-agent: Mozilla Thunderbird 0.5 (X11/20040309)

Juliusz Chroboczek wrote:
AB> There is no "restore all deleted files but retain other changes"
AB> command.

for i in $(tla inventory -s) ; do if [ ! -f $i ] ; then tla file-diffs -u $i | patch -p1; fi
  done

or something like that.

Well, not exactly like that; tla inventory doesn't list deleted files.

Maybe like this, though:

owd=$(cwd)
cd $(tla library-find $(tla logs -f|tail -n 1))
for i in $(tla inventory -s); do if [ ! -f $owd/$i ]; then cp -p $i $owd/$i; fi; done

What you don't know is that Tom's real name is Bourne, and that he has
a secret agenda to get us to learn shell programming.

Err, yeah.  I've written one or two tla-related shell scripts :-)
http://sourcecontrol.net/~abentley/aba

Of course, the original Arch implementation was a far more sophisticated Shell programming effort.

Aaron

--
Aaron Bentley
Director of Technology
Panometrics, Inc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]