]>
git.ipfire.org Git - thirdparty/squid.git/blob - scripts/remove-cfg.sh
3 ## Copyright (C) 1996-2018 The Squid Software Foundation and contributors
5 ## Squid software is distributed under GPLv2+ license and includes
6 ## contributions from numerous individuals and organizations.
7 ## Please see the COPYING and CONTRIBUTORS files for details.
10 # Removes an configuration file if it is identical to the default file,
11 # preventing "make distcheck" failures due to configuration leftovers.
12 # Intended to be used for installed configuration files.
14 remover
=$1 # the program to remove a file
15 prime
=$2 # the configuration file to be removed, including path
16 default
=$3 # the default configuration filename, including path
18 # by default, use .default default extension
21 default
="$prime.default"
24 # is the primary configuration file present?
27 # is the primary config identical to the default?
28 if diff $default $prime > /dev
/null
30 echo " $remover -f $prime";