]>
git.ipfire.org Git - thirdparty/squid.git/blob - scripts/remove-cfg.sh
3 # Removes an configuration file if it is identical to the default file,
4 # preventing "make distcheck" failures due to configuration leftovers.
5 # Intended to be used for installed configuration files.
7 remover
=$1 # the program to remove a file
8 prime
=$2 # the configuration file to be removed, including path
9 default
=$3 # the default configuration filename, including path
11 # by default, use .default default extension
14 default
="$prime.default"
17 # is the primary configuration file present?
20 # is the primary config identical to the default?
21 if diff $default $prime > /dev
/null
23 echo " $remover -f $prime";