Fix a confusing error message too.
run_command "${SRC_OUT}"-config "${DIST_DIR}"/src ./Setup.sh
run_command "${DOC_OUT}"-config "${DIST_DIR}"/doc reconf
+plugin ()
+{
+ if [[ -f Makefile ]]; then
+ my_make distclean
+ else
+ [[ -f config.h.in ]] || cmd autoheader
+ cmd autoconf
+ fi
+}
+
+for plugin in $PLUGINS; do
+ D="${DIST_DIR}"/src/$plugin
+ run_command "${DOC_OUT}"-$plugin-config "${DIST_DIR}"/src/$plugin plugin
+done
+
# Clean up after autoconf
find "${DIST_DIR}" -type d -name autom4te.cache | xargs rm -rf
fixup_perms "${DIST_DIR}"
DIST_TYPE=${1:-standard}
}
-[[ -d ${SOURCE_TREE} ]] || usage
+source_missing ()
+{
+ echo "${SOURCE_TREE}: directory not found"
+ exit 1
+}
+
+[[ -d ${SOURCE_TREE} ]] || source_missing
${ARGS_FUNCTION:-standard_args} "${@}"
NATIVE_OUT=${OUTPUT_DIR}/native
MACOSX_OUT=${OUTPUT_DIR}/macosx
+PLUGINS="blowfish gdbm md5 mhash"
+
notify ()
{
echo "${@}" >&3