]> git.ipfire.org Git - thirdparty/squid.git/blob - src/repl_modules.sh
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / repl_modules.sh
1 #!/bin/sh
2 #
3 ## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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
10 echo "/* automatically generated by $0 $*"
11 echo " * do not edit"
12 echo " */"
13 echo "#include \"squid.h\""
14 echo "#include \"repl_modules.h\""
15 echo "#include \"Store.h\""
16 echo ""
17 for module in "$@"; do
18 echo "extern REMOVALPOLICYCREATE createRemovalPolicy_${module};"
19 done
20 echo "void storeReplSetup(void)"
21 echo "{"
22 for module in "$@"; do
23 echo " storeReplAdd(\"$module\", createRemovalPolicy_${module});"
24 done
25 echo "}"