#!/bin/sh
#
# Wrapper around `swift build' that uses pkg-config in config.sh
# to determine compiler and linker flags
#
. ./config.sh
[ -e Sources/${Module}.swift ] || ./generate-wrapper.sh
if [ -z "$@" ]; then
    JAZZY_ARGS='--theme fullwidth --author "Rene Hexel" --author_url https://www.ict.griffith.edu.au/~rhexel/ --github_url https://github.com/rhx/SwiftGLib --github-file-prefix https://github.com/rhx/SwiftGLib/tree/generated --root-url http://rhx.github.io/SwiftGLib/ --output docs'
fi
./build.sh
rm -rf .docs.old
mv docs .docs.old 2>/dev/null
jazzy --swift-build-tool spm --clean --module-version $JAZZY_VER	\
      --module $Mod $JAZZY_ARGS "$@" -b $JAZZY_B

#!/bin/sh
#
# Wrapper around `swift build' that uses pkg-config in config.sh
# to determine compiler and linker flags
#
. ./config.sh
[ -e Sources/${Module}.swift ] || ./generate-wrapper.sh
if [ -z "$@" ]; then
    JAZZY_ARGS='--theme fullwidth --author "Rene Hexel" --author_url https://www.ict.griffith.edu.au/~rhexel/ --github_url https://github.com/rhx/Swift$Mod --github-file-prefix https://github.com/rhx/Swift$Mod/tree/generated --root-url http://rhx.github.io/Swift$Mod/ --output docs'
fi
./build.sh
rm -rf .docs.old
mv docs .docs.old 2>/dev/null
jazzy --swift-build-tool spm --clean --module-version $JAZZY_VER	\
      --module $Mod $JAZZY_ARGS "$@" -b $JAZZY_B

Make the script respect the module name
Make the script respect the module name
