]> git.ipfire.org Git - thirdparty/squid.git/blame - src/repl_modules.sh
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / repl_modules.sh
CommitLineData
6c625a31 1#!/bin/sh
bbc27441 2#
b8ae064d 3## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
bbc27441
AJ
4##
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.
8##
9
22d38e05 10echo "/* automatically generated by $0 $*"
11echo " * do not edit"
12echo " */"
13echo "#include \"squid.h\""
8b082ed9 14echo "#include \"repl_modules.h\""
e6ccf245 15echo "#include \"Store.h\""
22d38e05 16echo ""
6c625a31 17for module in "$@"; do
22d38e05 18 echo "extern REMOVALPOLICYCREATE createRemovalPolicy_${module};"
6c625a31 19done
22d38e05 20echo "void storeReplSetup(void)"
21echo "{"
6c625a31 22for module in "$@"; do
22d38e05 23 echo " storeReplAdd(\"$module\", createRemovalPolicy_${module});"
6c625a31 24done
22d38e05 25echo "}"