3 # etcdiff (deb-etcdiff?) shows how your current /etc dir
4 # diverges from the debian default one.
6 # Copyright (C) 2008,2009,2010 Antonio Ospite <ospite@studenti.unina.it>
7 # License: GPLv2 or later
14 DEBIANMIRROR="http://ftp.it.debian.org/debian"
17 TEMPDIR=${BASEDIR}/temp
18 CACHEDIR=${BASEDIR}/cache
19 REPORTDIR=${BASEDIR}/reports
23 echo "usage: $0 <file|package|system> [<file name>|<package name>]
25 etcdiff shows how your /etc dir differs from the debian default one
27 etcdiff by explicit file list:
28 FILES='/etc/sysctl.conf /etc/updatedb.conf'
34 etcdiff bycommand generated file list
35 FILES=\$(find /etc/apache2 -type f -perm /o+r | grep -v '.dpkg-')
41 etcdiff by package name
44 $0 package apache2-doc
45 $0 package apache2.2-common
46 $0 package libapache2-mod-php5
49 etcdiff the whole /etc system directory
54 rm $PROMPT_RM -rf $TEMPDIR && mkdir $TEMPDIR
55 rm $PROMPT_RM -rf $CACHEDIR && mkdir $CACHEDIR
56 rm $PROMPT_RM -rf $REPORTDIR && mkdir $REPORTDIR
58 . $BASEDIR/etcdiff.include