mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
allow make revcheck
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,5 +9,6 @@ docs/entities/version.ent
|
||||
docs/html
|
||||
docs/manual.xml
|
||||
docs/phpweb
|
||||
docs/revcheck.html
|
||||
docs/scripts/file-entities.php
|
||||
/templates_c
|
||||
|
@@ -7,3 +7,4 @@ config.*
|
||||
html
|
||||
phpweb
|
||||
diff
|
||||
revcheck.html
|
||||
|
@@ -52,10 +52,14 @@ test:
|
||||
$(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml
|
||||
|
||||
|
||||
revcheck: FORCE
|
||||
$(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html
|
||||
|
||||
# {{{ cleanup
|
||||
|
||||
clean:
|
||||
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
|
||||
|
||||
# }}}
|
||||
|
@@ -15,5 +15,9 @@ MAKE:
|
||||
* make (to make plain html)
|
||||
* 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.
|
||||
Read http://php.net/manual/howto/chapter-tools.html for more info.
|
||||
|
@@ -1,8 +1,7 @@
|
||||
#!/usr/bin/php -q
|
||||
<?php
|
||||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| PHP Version 4 |
|
||||
| PHP Version 5 |
|
||||
+----------------------------------------------------------------------+
|
||||
| Copyright (c) 1997-2004 The PHP Group |
|
||||
+----------------------------------------------------------------------+
|
||||
@@ -52,6 +51,9 @@ the actual english xml files, and print statistics
|
||||
// Long runtime
|
||||
set_time_limit(0);
|
||||
|
||||
// disable E_NOTICE
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
// A file is criticaly "outdated' if
|
||||
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
|
||||
|
Reference in New Issue
Block a user