3 if [ `basename $PWD` != "modules" ]; then
4 echo "$0 must be run from the .../modules directory"
11 echo "usage: merge_line token filename 'new line'"
14 # remove any existing entry...
15 grep -v "$1" $2 > tmp.$2
29 $0: this script takes TWO arguments:
30 the 'alphanumeric label' of the module and the location of
31 its object file from the .../modules/ directory
37 *> registering static module: $1 ($2) <*
39 merge_line "$1" _static_module_list "\
40 extern struct pam_module _$1_modstruct;"
42 merge_line "$1" _static_module_entry " &_$1_modstruct,"
44 merge_line "$2" _static_module_objects "../modules/$2"