MOD_FILE="$CUR_DIR/Make_modules"
SRC_FILE="$CUR_DIR/Make_sources"
U_FILE="$CUR_DIR/modules_upgrade.c"
-L_FILE="$CUR_DIR/language_list.h"
/usr/bin/printf "Scanning extension modules for entry points.\n"
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Starting $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Starting $HOOKNAME\n");
#endif
$HOOK();
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Initializing $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Initializing $HOOKNAME\n");
#endif
$HOOK();
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Initializing $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Initializing $HOOKNAME\n");
#endif
$HOOK();
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Shutting down $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Shutting down $HOOKNAME\n");
#endif
$HOOK();
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Initializing $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Initializing $HOOKNAME\n");
#endif
$HOOK(sess);
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Attaching Session; $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Attaching Session; $HOOKNAME\n");
#endif
$HOOK(sess);
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Initializing $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Initializing $HOOKNAME\n");
#endif
$HOOK(sess);
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Initializing $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Initializing $HOOKNAME\n");
#endif
$HOOK(*sess);
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "NEW $HOOKNAME\n");
+ syslog(LOG_DEBUG, "NEW $HOOKNAME\n");
#endif
$HOOK(httpreq);
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Detaching $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Detaching $HOOKNAME\n");
#endif
$HOOK(httpreq);
EOF
# Add this entry point to the .c file
cat <<EOF >> $C_FILE
#ifdef DBG_PRINNT_HOOKS_AT_START
- syslog(CTDL_INFO, "Destructing $HOOKNAME\n");
+ syslog(LOG_DEBUG, "Destructing $HOOKNAME\n");
#endif
$HOOK(httpreq);
EOF
#endif /* MODULES_INIT_H */
EOF
-
-
-### Now see what language modules we have installed ###
-/usr/bin/printf "Scanning language modules.\n"
-
-cat >$L_FILE <<EOF
-/* This file is generated automatically by mk_module_init.sh
- * Editing it by hand would be an exercise in futility.
- */
-const char *AvailLang[] = {
- "C",
-EOF
-
-for x in po/webcit/*.po
-do
- echo \ \"`basename $x | sed s/\.po\$//g`\",
-done >>$L_FILE
-
-cat >>$L_FILE <<EOF
- ""
-};
-EOF