allow make revcheck

This commit is contained in:
nlopess
2004-04-14 15:25:57 +00:00
parent 8feb7cf8eb
commit f5b76d5533
5 changed files with 14 additions and 2 deletions

1
.gitignore vendored
View File

@@ -9,5 +9,6 @@ docs/entities/version.ent
docs/html docs/html
docs/manual.xml docs/manual.xml
docs/phpweb docs/phpweb
docs/revcheck.html
docs/scripts/file-entities.php docs/scripts/file-entities.php
/templates_c /templates_c

View File

@@ -7,3 +7,4 @@ config.*
html html
phpweb phpweb
diff diff
revcheck.html

View File

@@ -52,10 +52,14 @@ test:
$(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml $(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml
revcheck: FORCE
$(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html
# {{{ cleanup # {{{ cleanup
clean: clean:
rm -f Makefile config.* manual.xml configure entities/version.ent *.fot dsssl/html-common.dsl rm -f Makefile config.* manual.xml configure entities/version.ent *.fot dsssl/html-common.dsl
rm -f revcheck.html file-entities.php
rm -fr autom4te.cache html phpweb rm -fr autom4te.cache html phpweb
# }}} # }}}

View File

@@ -15,5 +15,9 @@ MAKE:
* make (to make plain html) * make (to make plain html)
* make web (to make docs for website) * make web (to make docs for website)
Revision Tracking (for translations):
* make revcheck (this will create revcheck.html)
You should have libxml and autoconf installed in your system. You should have libxml and autoconf installed in your system.
Read http://php.net/manual/howto/chapter-tools.html for more info. Read http://php.net/manual/howto/chapter-tools.html for more info.

View File

@@ -1,8 +1,7 @@
#!/usr/bin/php -q
<?php <?php
/* /*
+----------------------------------------------------------------------+ +----------------------------------------------------------------------+
| PHP Version 4 | | PHP Version 5 |
+----------------------------------------------------------------------+ +----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group | | Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+ +----------------------------------------------------------------------+
@@ -52,6 +51,9 @@ the actual english xml files, and print statistics
// Long runtime // Long runtime
set_time_limit(0); set_time_limit(0);
// disable E_NOTICE
error_reporting(E_ALL ^ E_NOTICE);
// A file is criticaly "outdated' if // A file is criticaly "outdated' if
define("ALERT_REV", 10); // translation is 10 or more revisions behind the en one define("ALERT_REV", 10); // translation is 10 or more revisions behind the en one
define("ALERT_SIZE", 3); // translation is 3 or more kB smaller than the en one define("ALERT_SIZE", 3); // translation is 3 or more kB smaller than the en one