~ubuntu-branches/debian/lenny/cracklib2/lenny

« back to all changes in this revision

Viewing changes to util/mkdict

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner, Steve Langasek, Jan Dittberner
  • Date: 2008-10-16 21:04:24 UTC
  • mfrom: (4.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081016210424-bp06uo8c6xkjabzi
Tags: 2.8.12-8lenny1
[ Steve Langasek ]
* debian/update-cracklib: don't rely on [ -nt ] to return true when
  the second file is non-existent, since this fails under dash.
  LP: #278743.

[ Jan Dittberner ]
* integrate Ubuntu bugfix
* use set -e in debian/cracklib-runtime.preinst to fix lintian warning
  maintainer-script-ignores-errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
###
4
 
# This program is copyright Alec Muffett 1993. The author disclaims all
5
 
# responsibility or liability with respect to it's usage or its effect
6
 
# upon hardware or computer systems, and maintains copyright as set out
7
 
# in the "LICENCE" document which accompanies distributions of Crack v4.0
8
 
# and upwards.
9
 
###
10
 
 
11
 
### in case of explosion, invoke "sort" with "-T" option pointing to a lot
12
 
### of free space in a directory somewhere.
13
 
 
14
 
SORT="sort"
15
 
###SORT="sort -T /tmp"
16
 
 
17
 
cat $* |
18
 
        tr '[A-Z]' '[a-z]' |
19
 
        tr -cd '\012[a-z][0-9]' |
20
 
        $SORT |
21
 
        uniq |
22
 
        grep -v '^#' |
23
 
        grep -v '^$'