#!/bin/sh # originally written by mose # # ############################################################ # # How to Create Tiki-Lite ? # ------------------------- # # The following are instructions on how to use the TikiLite script. # # The current defaults are English language and jQUI theme. # These can be modified from the script. # #To Install # # 1. Check out a new installation of Tiki into a directory of your choice. # 2. Move to the top of your Tiki installation. # 3. Modify doc/devtools/tikilite.sh to set your defaults. # 4. Execute sh doc/devtools/tikilite.sh - this will remove all non-core files and directories. # #To Update # # 1. Do a svn up in your TikiLite directory # 2. Execute sh doc/devtools/tikilite.sh script again # # ############################################################ # # How to modify this file # ----------------------- # # The structure is faily simple, removals are done on a per feature basis, # with an indication of dependencies. # # Any dependencies found in multiple features, should be moved to the bottom # of the file. # # Whether you are fixing a feature, creating a new feature or uncommenting # a disabled feature, the standard should remain the same. # # ############################################################ # TODO: make the script interactive ! LANG_DEF="en" THEME_DEF="yeti" echo "Removing languages except defined..." find lang/* -type d | grep -v $LANG_DEF | grep -v \.svn | xargs -- rm -rf #echo "Removing iCal..." #rm -rf lib/calendar/iCal #echo "Removing jsCalendar..." #rm -rf lib/jscalendar #echo "Removing PDF fonts..." #find lib/pdflib/fonts -type f -name "*.afm" | grep -v php_Helvetica | grep -v php_Courier | xargs -- rm -f echo "Removing themes except defined..." find themes/* -type d | grep -v $THEME_DEF | grep -v default | grep -v base_files | grep -v css | grep -v js | grep -v \.svn | grep -v templates | xargs -- rm -rf #find styles/ -type f -name "*.css" | grep -v $THEME_DEF | grep -v design | grep -v layout | grep -v lite | xargs -- rm -f #echo "Removing SQL..." # Dependencies on PEAR::DB #rm -rf lib/wiki-plugins/wikiplugin_sql.php #echo "Removing Webmail..." #rm -rf tiki-admin_include_webmail.php #rm -rf tiki-webmail.php #rm -rf tiki-webmail_contacts.php #rm -rf tiki-webmail_download_attachment.php #rm -rf img/icons/admin_webmail.png #rm -rf img/icons/large/webmail.gif #rm -rf img/webmail #rm -rf templates/tiki-admin-include-webmail.tpl #rm -rf templates/tiki-webmail.tpl #rm -rf templates/tiki-webmail_contacts.tpl #rm -rf lib/webmail #rm -rf temp/mail_attachs #echo "Removing WS Server..." #rm -rf lib/pear/SOAP #rm -rf tiki-ws_client.php #rm -rf tiki-ws_server.php echo "Removing tests..." #rm -rf tiki-tests.php rm -rf tests # ############################################################ # Dependencies # ------------ #echo "Removing PEAR::DB..." #rm -rf lib/pear/DB #rm -rf lib/pear/DB.php # ############################################################ #echo "Setting directory perms..." #find -type d -exec chmod 775 {} \; #echo "Setting file perms..." #find -type f -exec chmod 664 {} \; #find -type f -name '*.sh' -exec chmod 775 {} \; echo "Done."