#!/bin/csh -f

set date=`date '+%Y%m%d'`
set filename="ja-$date";

find . -name "*.properties" -print | grep src > $filename.tmp
cat $filename.tmp | egrep -v "_(pt_BR|de|ru|zh_TW|zh_CN|fr_CA|es_US_DEBUG|ar|ca|ca_ES|es|eu|ja|ko|nl|pt|sv|it|tr_TR|es_MX|fr|fr_FR|pt_PT|es_ES|en_GB|en_AU|en_DEBUG|en_US|in_ID|mn|nl_NL|en|fr_FR_UPMC)\."  | egrep -v "(log4j|hibernate|velocity.properties|test-sakai|jldap-test|sample-test|sakai.properties|defaultJdbc|_vi.properties|ddl|mysql|oracle|hsqldb|jmeter|testdb|sakai.db.properties)" | egrep -v "(sections/xdocs/specs/index.html|siteassociation-impl.properties|content_type_images.properties|mocks|database.properties|project.properties|quartz.properties|system.properties|test-context.properties|views.properties|views.properties|matrix-views.properties|test.html|castor.properties|Config.properties|CHANGES.html|INSTALL.html|LICENSE.html|concurrent-1.3.4.html|radeox_markup|simplelog.properties|SAK12828.html|_test.html|colors.properties|siteassociation-impl.properties|SiteTypeProvider.properties|i18nedit.properties|sakai_basic_test.html|chat-sql.properties|_upgrade.html|_whatsnew.html|_whatsnew_history.html|repositoryStubImpl.properties|genfiles|config.properties|project-uno.properties|commons-logging.properties)" > $filename.list

wc $filename.list

#echo  "#" >> $filename.list

find . -name "*.properties" -print  > $filename.tmp

grep -v src $filename.tmp | grep -v target | grep -v apache | grep -v commons-logging | egrep -v "_(pt_BR|de|ru|zh_TW|zh_CN|fr_CA|es_US_DEBUG|ar|ca|es|eu|ja|ko|nl|pt|sv|tr_TR|es_MX|fr|fr_FR|pt_PT|es_ES|en_GB|en_AU|en_DEBUG|en_US|in_ID|mn|nl_NL|en|fr_FR_UPMC)\." | egrep -v "(log4j|hibernate|velocity.properties|test-sakai|jldap-test|sample-test|sakai.properties|defaultJdbc|_vi.properties|ddl|mysql|oracle|hsqldb|jmeter|testdb|sakai.db.properties)" | egrep -v "(sections/xdocs/specs/index.html|siteassociation-impl.properties|content_type_images.properties|mocks|database.properties|project.properties|quartz.properties|system.properties|test-context.properties|views.properties|views.properties|matrix-views.properties|test.html|castor.properties|Config.properties|CHANGES.html|INSTALL.html|LICENSE.html|concurrent-1.3.4.html|radeox_markup|simplelog.properties|SAK12828.html|_test.html|colors.properties|siteassociation-impl.properties|SiteTypeProvider.properties|i18nedit.properties|sakai_basic_test.html|chat-sql.properties|_upgrade.html|_whatsnew.html|_whatsnew_history.html|genfiles|config.properties|project-uno.properties|commons-logging.properties)" >> $filename.list 

wc $filename.list

# rm -rf /Users/kajita/Documents/workspace-benten/sakai-trunk/.benten/source
# mkdir /Users/kajita/Documents/workspace-benten/sakai-trunk/.benten/source
# tar cvf - -T ja-20120401.list | (cd /Users/kajita/Documents/workspace-benten/sakai-trunk/.benten/source; tar xvfp -)
# (cd /Users/kajita/Documents/workspace-benten/sakai-trunk/.benten/source; /portal/bin/rename-to-ja.csh)
# modify /Users/kajita/Documents/workspace-benten/sakai-trunk/.benten/source/message/message-tool/tool/src/bundle/recent_ja.properties
