doc/el_GR.ISO8859-7/share/tools/checkupdate/Makefile
Giorgos Keramidas 70a69003cb Add a new Python-based utility we wrote for the FreeBSD Greek
documentation project (and anyone else interested to use it).
In the translated files, we have added special `tags' some time
in the past, using the format:

    %SOURCE%    en_GR.ISO8859-1/articles/foo/file.sgml
    %SRCID%     1.5

to denote that this translation was based on revision 1.5 of the
file referenced in `%SOURCE%'.

The `checkupdate' utility makes parsing and checking of these
tags easier.  It expects to receive a list of files to check in
standard input, so it can be run by typing:

    find el_GR.ISO8859-7 | checkupdate

This should report in standard output something like:

: el_GR.ISO8859-7/articles/compiz-fusion/Makefile rev. 1.1
:     1.1        -> 1.1         en_US.ISO8859-1/articles/compiz-fusion/Makefile
:
: el_GR.ISO8859-7/articles/compiz-fusion/article.sgml rev. 1.1
:     1.3        -> 1.5         en_US.ISO8859-1/articles/compiz-fusion/article.sgml

We will keep extending the `checkupdate.py' script to add more
features, like a "patch preview" mode.  The version committed
here works well enough for now, and it already shows a lot of
files that we have to update in el_GR.ISO8859-7 :)

Inspired by:    pgj's shell based version of `checkupdate'
2008-06-15 15:45:36 +00:00

15 lines
174 B
Makefile

# $FreeBSD$
SCRIPTS= checkupdate
MAN= checkupdate.1
CLEANFILES= ${SCRIPTS}
BINDIR?= ${HOME}/bin
.SUFFIXES: .py
.py:
cat ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>