[202] in athena10

home help back first fref pref prev next nref lref last post

Re: /svn/athena r22975 - in trunk/debathena/debathena/dotfiles: .

daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon May 12 17:28:25 2008

From: Greg Hudson <ghudson@MIT.EDU>
To: Timothy G Abbott <tabbott@mit.edu>
Cc: athena10@mit.edu
In-Reply-To: <Pine.LNX.4.64L.0805121717050.3332@mega-man.mit.edu>
Content-Type: text/plain
Date: Mon, 12 May 2008 17:27:40 -0400
Message-Id: <1210627660.2048.42.camel@error-messages.mit.edu>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit

I thought about it when I wrote the patch but decided to take the
simpler approach, and I think I'm going to let it stay that way.

On Mon, 2008-05-12 at 17:17 -0400, Timothy G Abbott wrote:
> Oops, replies to commit emails are supposed to go to athena10@.
> 
>  	-Tim Abbott
> 
> ---------- Forwarded message ----------
> Date: Mon, 12 May 2008 17:16:56 -0400 (EDT)
> From: Timothy G Abbott <tabbott@MIT.EDU>
> To: ghudson@mit.edu
> Cc: source-commits@mit.edu
> X-Spam-Score: -5
> Subject: Re: /svn/athena r22975 - in trunk/debathena/debathena/dotfiles: .
>      debian
> 
> I think we may want to have the default .generation file have a comment at the 
> top explaining what its purpose is, to avoid people deleting it because they 
> don't realize it's important (the name is not sufficiently tied to Athena to 
> prevent people frmo thinking it's from something else). I'd recommend using # 
> comments and replacing
> 
> cat $HOME/.generation
> 
> with
> 
> grep -v ^# $Home/.generation
> 
>  	-Tim Abbott
> 
> On Mon, 12 May 2008, ghudson@MIT.EDU wrote:
> 
> > Author: ghudson
> > Date: 2008-05-12 13:57:20 -0400 (Mon, 12 May 2008)
> > New Revision: 22975
> > 
> > Added:
> >   trunk/debathena/debathena/dotfiles/dot.generation
> > Modified:
> >   trunk/debathena/debathena/dotfiles/Makefile
> >   trunk/debathena/debathena/dotfiles/bashrc
> >   trunk/debathena/debathena/dotfiles/cshrc
> >   trunk/debathena/debathena/dotfiles/debian/changelog
> > Log:
> > In dotfiles:
> >  * Add new .generation dotfile to distinguish old and new accounts.
> >  * Make double-sided printing the default for new users.
> > 
> > 
> > Modified: trunk/debathena/debathena/dotfiles/Makefile
> > ===================================================================
> > --- trunk/debathena/debathena/dotfiles/Makefile	2008-05-12 17:38:40 UTC 
> > (rev 22974)
> > +++ trunk/debathena/debathena/dotfiles/Makefile	2008-05-12 17:57:20 UTC 
> > (rev 22975)
> > @@ -35,6 +35,8 @@
> > 	install -c -m 0644 dot.bash_login ${DESTDIR}${PROTOTMP}/.bash_login
> > 	install -c -m 0644 dot.bashrc ${DESTDIR}${PROTOTYPE}/.bashrc
> > 	install -c -m 0644 dot.bashrc ${DESTDIR}${PROTOTMP}/.bashrc
> > +	install -c -m 0644 dot.generation ${DESTDIR}${PROTOTYPE}/.generation
> > +	install -c -m 0644 dot.generation ${DESTDIR}${PROTOTMP}/.generation
> > 	install -c -m 0644 env_remove ${DESTDIR}${SYSTEM}
> > 	install -c -m 0644 env_setup ${DESTDIR}${SYSTEM}
> > 	install -c -m 0755 gnome-stuff-1-to-2 ${DESTDIR}${SYSTEM}
> > 
> > Modified: trunk/debathena/debathena/dotfiles/bashrc
> > ===================================================================
> > --- trunk/debathena/debathena/dotfiles/bashrc	2008-05-12 17:38:40 UTC (rev 
> > 22974)
> > +++ trunk/debathena/debathena/dotfiles/bashrc	2008-05-12 17:57:20 UTC (rev 
> > 22975)
> > @@ -32,6 +32,12 @@
> > 	export ENV_SET=t			# Avoid unnecessary repeat
> > 	export HOSTTYPE="`/bin/machtype`"
> > 
> > +	if [ -r "$HOME/.generation" ]; then
> > +		export ATHENA_DOTFILE_GENERATION=`cat "$HOME/.generation"`
> > +	else
> > +		export ATHENA_DOTFILE_GENERATION=0
> > +	fi
> > +
> > 	umask 077				# Strictly protect files
> > 						#  (does not apply in AFS)
> > 	ulimit -S -c 0				# Don't allow coredumps
> > @@ -41,6 +47,11 @@
> >
> > 	export MORE=-s
> > 
> > +	# Set double-sided printing for sufficiently recent users.
> > +	if [ 1 -le "$ATHENA_DOTFILE_GENERATION" ]; then
> > +		export LPROPT=-Zduplex
> > +	fi
> > +
> > 	export ATHENA_SYS=`/bin/machtype -S`
> > 	export ATHENA_SYS_COMPAT=`/bin/machtype -C`
> > 
> > 
> > Modified: trunk/debathena/debathena/dotfiles/cshrc
> > ===================================================================
> > --- trunk/debathena/debathena/dotfiles/cshrc	2008-05-12 17:38:40 UTC (rev 
> > 22974)
> > +++ trunk/debathena/debathena/dotfiles/cshrc	2008-05-12 17:57:20 UTC (rev 
> > 22975)
> > @@ -35,6 +35,12 @@
> >
> >   setenv ENV_SET				# Avoid unnecessary repeat
> > 
> > +  if (-r ~/.generation) then
> > +    setenv ATHENA_DOTFILE_GENERATION `cat ~/.generation`
> > +  else
> > +    setenv ATHENA_DOTFILE_GENERATION 0
> > +  endif
> > +
> >   umask 077				# Strictly protect files
> > 					#  (does not apply in AFS)
> >   limit coredumpsize 0            	# Don't allow coredumps
> > @@ -45,6 +51,11 @@
> >   setenv VISUAL emacs			# Set default screen editor
> >   setenv MM_CHARSET iso-8859-1
> > 
> > +  # Set double-sided printing for sufficiently recent users.
> > +  if ( $ATHENA_DOTFILE_GENERATION >= 1 ) then
> > +    setenv LPROPT -Zduplex
> > +  endif
> > +
> >   setenv ATHENA_SYS `/bin/machtype -S`
> >   if ( $ATHENA_SYS == "" ) then
> >     setenv ATHENA_SYS @sys
> > 
> > Modified: trunk/debathena/debathena/dotfiles/debian/changelog
> > ===================================================================
> > --- trunk/debathena/debathena/dotfiles/debian/changelog	2008-05-12 
> > 17:38:40 UTC (rev 22974)
> > +++ trunk/debathena/debathena/dotfiles/debian/changelog	2008-05-12 
> > 17:57:20 UTC (rev 22975)
> > @@ -1,3 +1,10 @@
> > +debathena-dotfiles (10.0.2-0debathena2) unstable; urgency=low
> > +
> > +  * Add new .generation dotfile to distinguish old and new accounts.
> > +  * Make double-sided printing the default for new users.
> > +
> > + -- Greg Hudson <ghudson@mit.edu>  Mon, 12 May 2008 13:56:23 -0400
> > +
> > debathena-dotfiles (10.0.2-0debathena1) unstable; urgency=low
> >
> >   * Fix a bug introduced in the handling of ~/.path files.
> > 
> > Added: trunk/debathena/debathena/dotfiles/dot.generation
> > 
> >


home help back first fref pref prev next nref lref last post