From: Matt Birkholz Date: Tue, 15 Oct 2013 16:18:50 +0000 (-0700) Subject: dist/make-src-files: Autoconf plugins (FFI wrappers). X-Git-Tag: release-9.2.0~61 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=4314d5cd292dcd5e80cebfecf75555c6d7b09ec0;p=mit-scheme.git dist/make-src-files: Autoconf plugins (FFI wrappers). Fix a confusing error message too. --- diff --git a/dist/make-src-files b/dist/make-src-files index c51fe784c..af4c478c3 100755 --- a/dist/make-src-files +++ b/dist/make-src-files @@ -57,6 +57,21 @@ notify "Configuring the distribution directory" 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}" diff --git a/dist/shared.sh b/dist/shared.sh index 6470a8210..198eeb388 100644 --- a/dist/shared.sh +++ b/dist/shared.sh @@ -55,7 +55,13 @@ standard_args () 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} "${@}" @@ -94,6 +100,8 @@ LIARC_OUT=${OUTPUT_DIR}/liarc NATIVE_OUT=${OUTPUT_DIR}/native MACOSX_OUT=${OUTPUT_DIR}/macosx +PLUGINS="blowfish gdbm md5 mhash" + notify () { echo "${@}" >&3