2 # $FreeBSD: src/contrib/libpam/modules/register_static,v 1.1.1.1.6.1 2001/06/11 15:28:16 markm Exp $
4 if [ `basename $PWD` != "modules" ]; then
5 echo "$0 must be run from the .../modules directory"
12 echo "usage: merge_line token filename 'new line'"
15 # remove any existing entry...
16 grep -v "$1" $2 > tmp.$2
30 $0: this script takes TWO arguments:
31 the 'alphanumeric label' of the module and the location of
32 its object file from the .../modules/ directory
38 *> registering static module: $1 ($2) <*
40 merge_line "$1" _static_module_list "\
41 extern struct pam_module _$1_modstruct;"
43 merge_line "$1" _static_module_entry " &_$1_modstruct,"
45 merge_line "$2" _static_module_objects "../modules/$2"