[linux] Re: meerdere files inchecken (RCS) en maar 1 keer een beschrijving hoeven te geven

Udo van den Heuvel udovdh op xs4all.nl
Ma Dec 17 17:01:19 CET 2007


Folkert van Heusden wrote:
>>> for i in `seq 0 16` ; do tar xjpf pos-src-1.$i.tar.bz2 ; if [ $i -eq "0" ] ; then FLAG=-i ; else FLAG='' ; fi ; rcs -l -q $FLAG -nrel1_$i pos/* ; done
>>>
>>> maar dat heeft als nadeel dat ik voor iedere file afzonder wat moet gaan
>>> inkloppen terwijl alleen een label (-n) eigenlijk al genoeg is en anders
>>> desnoods een tekst a la rel1_$i (dus wat ik ook in 't label stop).
>>> Weet iemand wat ik fout doe? Of een andere methode? Het zijn namelijk
>>> nogal veel files om qua met de hand niet een optie.
>> Ik denk dat je de -t-optie van rcs wilt gebruiken.
> 
> Nie werk nie:
> ...
> rcs: pos/RCS/Pos.java,v: No such file or directory

man rcs:

       -t[file]
              Write descriptive text from the contents of the named file
into the RCS file, deleting the existing  text.   The  file  pathname
              cannot begin with -.  If file is omitted, obtain the text
from standard input, terminated by end-of-file or by a line containing
              . by itself.  Prompt for the text if interaction is
possible; see -I.  With -i, descriptive text is obtained even if -t  is  not
              given.

       -t-string
              Write descriptive text from the string into the RCS file,
deleting the existing text.

-t-blabla dan maar?



More information about the Linux mailing list