~ubuntu-branches/ubuntu/dapper/gnats/dapper

« back to all changes in this revision

Viewing changes to debian/scripts/rmmail-user

  • Committer: Bazaar Package Importer
  • Author(s): Chad Walstrom
  • Date: 2005-03-07 17:56:31 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050307175631-agtm10dvjbemuc64
Tags: 4.1.0-0
* New upstream version
* debian/rules: now uses '--with-lispdir' option instead of environment
  variable overloading. Re-enabled optimization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
set -e
4
 
 
5
 
###############################################################################
6
 
#
7
 
# Remove the 'gnats' system from mail
8
 
#
9
 
 
10
 
if [ "$1" = purge ]; then
11
 
 
12
 
  TEMPFILE=$(tempfile)
13
 
  OLDMAILFILE=$MAILFILE.dpkg-old
14
 
  
15
 
  sed 's/^[ \t]*\(gnats.*\)$/#\1/' $MAILFILE >$TEMPFILE
16
 
  cp $MAILFILE $OLDMAILFILE
17
 
  chmod 644 $TEMPFILE
18
 
  mv $TEMPFILE $MAILFILE
19
 
 
20
 
fi