#!/bin/bash # $HeadURL$ $LastChangedRevision$ # Modules . <(pcms-config --format=shell) . $(miniade) || { echo "${0##*/}: ERROR: miniade failed (hint: run 'miniade' to see error)" >&2; exit 1; } # Configurable stuff main() { local MY_ARGS # Defaults for options # Process options miniade_process_options MY_ARGS "$@" && set -- "${MY_ARGS[@]}" # Process arguments [ $# = 0 ] || miniade_bad_usage # Sanity checks and derivations # Set SITE_CONFIG_DIR to sensible default and then allow it to be overridden from config. SITE_CONFIG_DIR=$PCMS_ETC_PREFIX/site-config . $PCMS_ETC_PREFIX/pcms.conf miniade_debug 10 "main: SITE_CONFIG_DIR=$SITE_CONFIG_DIR" # Guts cd $SITE_CONFIG_DIR # Report site-specific makefiles and scripts find makefiles scripts -type f | sort | while read FILE; do miniade_warning "$FILE: makefile or script in site-config (hint: integrate into pcms)" done # Report site-specific plugins and generators that override system-provided plugins (but don't # report site-specific plugins and generators that don't override system-provided plugins). find plugins generators -type f | sort | while read FILE; do if [ -f $PCMS_SHARE_PREFIX/$FILE ]; then miniade_warning "$FILE: makefile or script in site-config (hint: integrate into pcms)" fi done } main "$@"