2 # $FreeBSD: src/contrib/libpam/modules/register_static,v 1.1.1.1.6.1 2001/06/11 15:28:16 markm Exp $
3 # $DragonFly: src/contrib/libpam/modules/Attic/register_static,v 1.2 2003/06/17 04:24:03 dillon Exp $
5 if [ `basename $PWD` != "modules" ]; then
6 echo "$0 must be run from the .../modules directory"
13 echo "usage: merge_line token filename 'new line'"
16 # remove any existing entry...
17 grep -v "$1" $2 > tmp.$2
31 $0: this script takes TWO arguments:
32 the 'alphanumeric label' of the module and the location of
33 its object file from the .../modules/ directory
39 *> registering static module: $1 ($2) <*
41 merge_line "$1" _static_module_list "\
42 extern struct pam_module _$1_modstruct;"
44 merge_line "$1" _static_module_entry " &_$1_modstruct,"
46 merge_line "$2" _static_module_objects "../modules/$2"