openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit cc7b6c997e180a8fc5d54372c572bf6ff045122a
parent a95894c1faca0f9810ce7e23dd5629e10a2b7bd0
Author: dankert <devnull@localhost>
Date:   Wed, 20 Jan 2010 00:50:29 +0100

Neues Shellscript zum Verschlanken der OpenRat-Installation.

Diffstat:
doc/examples/maintenance/compact.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/examples/maintenance/compact.sh b/doc/examples/maintenance/compact.sh @@ -12,7 +12,8 @@ # Call 'compact.sh' in the openrat installation directory minimize_php() { - cat $1 | tr -d \\n > $1 + #cat $1 | sed -e 's/\/\/.*$//g' | tr -d \\t | tr -d \\r | tr -d \\n | sed -e 's/\/\*.*\*\///g' > $1 + cat $1 | sed -e 's/\/\/.*$//g' | tr -d \\t | tr -d \\r > $1 } @@ -38,7 +39,7 @@ cd compact rm -r themes/default/templates rm -r themes/default/include -for i in `find -name *.class.php`; do +for i in `find -name "*.php"`; do minimize_php $i done