[net.unix-wizards] Multiple file versions -- FLAME

acheng@uiucdcs.UUCP (09/27/84)

    >>Multiple versions files<<

I started to use RCS (provided in the 4.2BSD) to maintain the
history of all my source files (sometime data files too).  It works
like a charm and i usually spend less than double of the real files
space (RCS keeps the most recent copy and "diff scripts" for
older versions).  I can even put some "history" strings into
the compiled object that tell me what version i compiled with.
This is definitely better than keeping multi-versions around.

albert cheng
{ihnp4,pur-ee}!uiucdcs!acheng
acheng%uiuc@csnet-relay

	{Ask not what Unix can do for you,
		Ask what you can do for Unix!!}

wunder@wdl1.UUCP (wunder ) (10/04/84)

Are you guys still talking about multiple file versions ?!?

Good grief!  I thought that everyone had aliased "rm" to "mv".
Try putting these lines in your .cshrc:

# safe rm.  moves things to /tmp, where the system can garbage collect
alias   rm      'mv \!* /tmp/wunder'

You are free to use your own login name instead of mine for your
directory.  It is polite to occasionally find and remove everything
that hasn't been touched in the last few days (use of the "find"
command is left as an exercise ...).

w underwood

PS:  A friend of mine refuses to do this.  He believes that accidentally
blowing away useful files "builds character".   The mv is slower anyway.

mather@uicsl.UUCP (10/14/84)

We do the same thing here, but the clean up sequence is done
conditionally, i.e., we do a

last -1 $USER | fgrep 'logged'

and if something is there, that means you are logged in somewhere else
and shouldn't rm the backup. Works well and a lot of people use the
technique.

					b.c.mather
					software surgeon
					uiucdcs!uicsl!mather