diff --git a/scripts/ax_init_standard_project.m4 b/scripts/ax_init_standard_project.m4 index 6f19ed2..e3795b5 100644 --- a/scripts/ax_init_standard_project.m4 +++ b/scripts/ax_init_standard_project.m4 @@ -178,7 +178,7 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ DESCRIPTION=$(head -1 README) fi if which pandoc 2>&1 > /dev/null; then - README_HTML=$(echo "$README" | pandoc -f markdown_github -t html | sed ':a;N;$!ba;s,\\n,\\\\\\\\n,g;s/\n/\\n/g;s,",\\",g') + README_HTML=$(echo "$README" | pandoc -f markdown_github -t html | sed ':a;N;$!ba;s,\\\(.\),\\\\\1,g;s/\n/\\n/g;s,",\\",g;s, ,\ \ ,g') else README_HTML="${README}" fi @@ -197,6 +197,10 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ AX_SUBST(AUTHOR_NAME) AX_SUBST(AUTHOR_URL) AX_SUBST(AUTHOR_MAIL) + PROJECT_URL="${PROJECT_URL:-${AUTHOR_URL}/projects/${PACKAGE_NAME}}" + SOURCE_DOWNLOAD="${SOURCE_DOWNLOAD:-${AUTHOR_URL}/downloads/${PACKAGE_NAME}}" + AX_SUBST(PROJECT_URL) + AX_SUBST(SOURCE_DOWNLOAD) DISTRO=$(lsb_release -sc 2>/dev/null || uname -s 2>/dev/null) AX_SUBST(DISTRO) ARCH=$((@<:@@<:@ $(uname -sm) =~ 64 @:>@@:>@ && echo amd64) || (@<:@@<:@ $(uname -sm) =~ 'i?86' @:>@@:>@ && echo i386 || uname -sm)) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index e073d6c..0b8f192 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -569,6 +569,20 @@ if ! testtag AX_CHECK_QT && \ ! testtag AX_REQUIRE_QT; then echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | \ to --condition AX_USE_CXX src/makefile.am + if ! ls src/*.[ch]xx; then + to --condition AX_USE_CXX src/${PACKAGE_NAME#lib}.hxx < #include @@ -679,7 +700,8 @@ class ${PackageName}: public QMainWindow, protected Ui::${PackageName} { #endif EOF - to --condition AX_USE_CXX src/${PACKAGE_NAME}.ui < ${PackageName} @@ -761,7 +783,7 @@ EOF to --condition AX_USE_CXX src/version.cxx <\$projectbrief @@ -925,7 +947,18 @@ to --condition AX_USE_DOXYGEN doc/style.css <