Output date into the stamp file, so that mercurial's copy of stamp is always newer than the sources; and do not abort if txt2tags wasn't found

This commit is contained in:
Yevgen Muntyan 2008-09-05 13:45:46 -05:00
parent 7d851b1208
commit 88b07b4b2c
3 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,7 @@ stamp-help: $(t2t_sources) makedocs
rm -fr help && \
$(mkdir_p) help && \
$(srcdir)/makedocs $(srcdir)/medit.t2t && \
echo stamp > stamp-help
echo `date` > stamp-help
medit.lo: build-docs
prefs.lo: build-docs

View File

@ -23,6 +23,11 @@ if test ! -e "$outdir"; then
exit 1
fi
txt2tags --version >/dev/null 2>/dev/null || {
echo "*** WARNING: txt2tags has not been found, docs will not be regenerated ***" >&2
exit 0
}
generate () {
$T2T --outfile=$2 $1 || exit 1
(cd "$outdir" && $SPLITY -index $SPLITY_INDEX -page $SPLITY_PAGE $2) || exit 1

View File

@ -1 +1 @@
stamp
Fri Sep 5 13:44:58 CDT 2008