[23319] in Source-Commits
/svn/athena r22975 - in trunk/debathena/debathena/dotfiles: . debian
daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon May 12 13:58:28 2008
Date: Mon, 12 May 2008 13:57:21 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200805121757.NAA19801@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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