Output md5 sums into stamp file, to avoid having to commit stamp file on every timestamp change
This commit is contained in:
parent
9f1cb1d7b6
commit
da721f2209
@ -25,12 +25,13 @@ build-docs: stamp-help
|
|||||||
medit.1: man-medit.t2t
|
medit.1: man-medit.t2t
|
||||||
$(TXT2TAGS) --target=man --outfile=$(srcdir)/medit.1 $(srcdir)/man-medit.t2t
|
$(TXT2TAGS) --target=man --outfile=$(srcdir)/medit.1 $(srcdir)/man-medit.t2t
|
||||||
|
|
||||||
stamp-help: $(t2t_sources) makedocs
|
stamp_help_deps = $(t2t_sources) makedocs
|
||||||
|
stamp-help: $(stamp_help_deps)
|
||||||
cd $(srcdir) && \
|
cd $(srcdir) && \
|
||||||
rm -fr help && \
|
rm -fr help && \
|
||||||
$(mkdir_p) help && \
|
$(mkdir_p) help && \
|
||||||
TXT2TAGS=$(TXT2TAGS) $(srcdir)/makedocs $(srcdir)/medit.t2t && \
|
TXT2TAGS=$(TXT2TAGS) $(srcdir)/makedocs $(srcdir)/medit.t2t \
|
||||||
echo `date` > stamp-help
|
$(srcdir)/stamp-help $(stamp_help_deps)
|
||||||
|
|
||||||
medit.lo: build-docs
|
medit.lo: build-docs
|
||||||
prefs.lo: build-docs
|
prefs.lo: build-docs
|
||||||
|
19
doc/makedocs
19
doc/makedocs
@ -8,6 +8,18 @@ infile="$1"
|
|||||||
outfile="$thisdir"/`basename $infile .t2t`.html
|
outfile="$thisdir"/`basename $infile .t2t`.html
|
||||||
outdir="$thisdir/help"
|
outdir="$thisdir/help"
|
||||||
|
|
||||||
|
shift
|
||||||
|
stamp="$1"
|
||||||
|
shift
|
||||||
|
rm -f stamp-help.tmp
|
||||||
|
for arg; do
|
||||||
|
if [ ! -f "$arg" ]; then
|
||||||
|
echo "OOPS" >&2
|
||||||
|
else
|
||||||
|
(cd $srcdir && md5sum "$arg") >> stamp-help.tmp
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [ -z "$TXT2TAGS" ]; then
|
if [ -z "$TXT2TAGS" ]; then
|
||||||
TXT2TAGS=txt2tags
|
TXT2TAGS=txt2tags
|
||||||
fi
|
fi
|
||||||
@ -52,3 +64,10 @@ write_sections $outfile help-sections.h.tmp || exit 1
|
|||||||
cmp -s help-sections.h.tmp help-sections.h || cp help-sections.h.tmp help-sections.h || exit 1
|
cmp -s help-sections.h.tmp help-sections.h || cp help-sections.h.tmp help-sections.h || exit 1
|
||||||
rm -f help-sections.h.tmp
|
rm -f help-sections.h.tmp
|
||||||
rm $outfile || exit 1
|
rm $outfile || exit 1
|
||||||
|
|
||||||
|
if cmp -s stamp-help.tmp "$stamp"; then
|
||||||
|
touch "$stamp" || exit 1
|
||||||
|
else
|
||||||
|
mv stamp-help.tmp "$stamp" || exit 1
|
||||||
|
fi
|
||||||
|
rm -f stamp-help.tmp
|
||||||
|
@ -1 +1,7 @@
|
|||||||
Fri Sep 5 23:57:27 CDT 2008
|
4503920d308858fd64bafa2791e525a1 license.t2t
|
||||||
|
2abd37333a2e2350e3aab16be85477e7 medit.t2t
|
||||||
|
16d0c35b878c1139db5ea59f3b93a326 prefs-file.t2t
|
||||||
|
6a6baa3658d16693f19cf1ee14f886db prefs.t2t
|
||||||
|
f41b53a193fabd1f343746ea0645d63e user-tools.t2t
|
||||||
|
b5d6ecd9717fa47b0109edeabb719d3e man-medit.t2t
|
||||||
|
712a6dd6de01fe5d50e1095c66823f63 makedocs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user