|
|
|
@ -171,12 +171,13 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
|
AX_SUBST(NUMBERS) |
|
|
|
|
AX_SUBST(HOME) |
|
|
|
|
if test -f README.md; then |
|
|
|
|
README=$() |
|
|
|
|
README=$(tail -n +3 README.md) |
|
|
|
|
DESCRIPTION=$(head -1 README.md) |
|
|
|
|
else |
|
|
|
|
README=$(tail -n +3 README) |
|
|
|
|
DESCRIPTION=$(head -1 README) |
|
|
|
|
fi |
|
|
|
|
README_ESCAPED=$(echo "$README" | sed ':a;N;$!ba;s/\n/\\n/g;s,",\\",g') |
|
|
|
|
if which pandoc 2>&1 > /dev/null; then |
|
|
|
|
README_HTML=$(echo "$README" | pandoc -f markdown_github -t html | sed ':a;N;$!ba;s,\\\(.\),\\\\<span>\1</span>,g;s/\n/\\n/g;s,",\\",g;s, ,\ \ ,g') |
|
|
|
|
else |
|
|
|
@ -184,6 +185,8 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
|
fi |
|
|
|
|
AX_SUBST(README) |
|
|
|
|
_AM_SUBST_NOTMAKE([README]) |
|
|
|
|
AX_SUBST(README_ESCAPED) |
|
|
|
|
_AM_SUBST_NOTMAKE([README_ESCAPED]) |
|
|
|
|
AX_SUBST(README_HTML) |
|
|
|
|
_AM_SUBST_NOTMAKE([README_HTML]) |
|
|
|
|
AX_SUBST(DESCRIPTION) |
|
|
|
|