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