#!/bin/sh # Clean up the files remtrace Update all source files. cd $EIFFEL_SRC exprt -r $DEFAULT_CVS_TAG -d Eiffel Eiffel exprt -r $DEFAULT_CVS_TAG -d build2 Src/build2 exprt -r $DEFAULT_CVS_TAG -d vision2_tour Src/examples/vision2/widget_test exprt -r $DEFAULT_CVS_TAG -d C runtime exprt -r $DEFAULT_CVS_TAG -d dotnet Src/dotnet exprt -r $DEFAULT_CVS_TAG -d C_library Src/C_library # These directories should already have been created by make_delivery. Whatever... safe_md $INSTALL_DIR/studio/spec safe_md $INSTALL_DIR/studio/spec/unix safe_md $INSTALL_DIR/studio/spec/unix/bin safe_md $INSTALL_DIR/studio/spec/unix/include safe_md $INSTALL_DIR/studio/spec/unix/lib safe_md $INSTALL_DIR/build/spec safe_md $INSTALL_DIR/build/spec/unix safe_md $INSTALL_DIR/build/spec/unix/bin remtrace Recompile Vision2 Tour cd $EIFFEL_SRC/vision2_tour safe_md $EXPORT_DIR/vision2_tour source retrieve_build_files $DEFAULT_CVS_TAG &> $INSTALL_LOG >> $INSTALL_LOG source retrieve_flat_short &> $INSTALL_LOG >> $INSTALL_LOG cd $EIFFEL_SRC/vision2_tour clean_project finalize linuxace.ace tgz_ccode vision2_tour if [ ! -f vision2_tour.tar.gz ]; then echo Could not finalize a new Vision2 tour CANCEL fi clean_project move $EIFFEL_SRC/vision2_tour/flatshort $INSTALL_DIR/vision2_tour move $EIFFEL_SRC/vision2_tour/tests $INSTALL_DIR/vision2_tour move $EIFFEL_SRC/vision2_tour/bitmaps/png/*.png $INSTALL_DIR/vision2_tour/bitmaps/png move vision2_tour.tar.gz $EXPORT_DIR/vision2_tour remtrace Recompile EiffelBuild cd $EIFFEL_SRC/build2 cd modified_libraries safe_md $EXPORT_DIR/build cd .. remtrace Enterprise Build clean_project finalize Ace.unix.ace tgz_ccode build if [ ! -f build.tar.gz ]; then echo Could not finalize a new EiffelBuild CANCEL fi clean_project move build.tar.gz $EXPORT_DIR/build if [ "$MULTIPLE_EDITIONS" ]; then remtrace Free Build clean_project finalize evaluation_ace.unix.ace tgz_ccode build if [ ! -f build.tar.gz ]; then echo Could not finalize a new EiffelBuild CANCEL fi clean_project move build.tar.gz $EXPORT_DIR/build/build_free.tar.gz fi if [ ! "$NO_NEW_EC" ]; then remtrace Recompile EiffelStudio remtrace Enterprise edition if [ ! -d $FINALIZATION_DIR ]; then md $FINALIZATION_DIR fi cd $FINALIZATION_DIR copy $NEW_EIFFEL_SRC/Eiffel/Ace/newbench.linux.ace ace.ace clean_project finalize ace.ace tgz_ccode ec if [ ! -e ec.tar.gz ]; then echo Could not finalize a new EiffelStudio CANCEL fi clean_project move ec.tar.gz $EXPORT_DIR if [ "$MULTIPLE_EDITIONS" ]; then remtrace University version edition cd $FINALIZATION_DIR copy $NEW_EIFFEL_SRC/Eiffel/Ace/newbench.linux.ace ace.ace sed -e "s/free/enterprise/g" ace.ace >> newace.ace move newace.ace ace.ace cd $EIFFEL_SRC/Eiffel/library/activation/free sed -e "s/is_evaluating\ := \True/is_evaluating\ :=\ False/g" activation_checker.e >> tmp.e move tmp.e activation_checker.e cd $EIFFEL_SRC/Eiffel/API/constants sed -e "s/Version_type_name:\ STRING\ is\ \"Enterprise\ Edition\"/Version_type_name:\ STRING\ is\ \"University\ Edition\"/g" system_constants.e >> new_system_constants.e move new_system_constants.e system_constants.e cd $FINALIZATION_DIR clean_project finalize ace.ace tgz_ccode ec if [ ! -e ec.tar.gz ]; then echo Could not finalize a new EiffelStudio CANCEL fi clean_project move ec.tar.gz $EXPORT_DIR/ecuni.tar.gz remtrace Free version edition cd $FINALIZATION_DIR copy $NEW_EIFFEL_SRC/Eiffel/Ace/newbench.linux.ace ace.ace sed -e "s/free/enterprise/g" ace.ace >> newace.ace move newace.ace ace.ace cd $EIFFEL_SRC/Eiffel/library/activation/free sed -e "s/is_evaluating\ := \False/is_evaluating\ :=\ True/g" activation_checker.e >> tmp.e move tmp.e activation_checker.e cd $EIFFEL_SRC/Eiffel/API/constants sed -e "s/Version_type_name:\ STRING\ is\ \"University\ Edition\"/Version_type_name:\ STRING\ is\ \"Free\ Edition\"/g" system_constants.e >> new_system_constants.e move new_system_constants.e system_constants.e sed -e "s/has_case:\ BOOLEAN\ is\ True/has_case:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e sed -e "s/has_metrics:\ BOOLEAN\ is\ True/has_metrics:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e sed -e "s/has_profiler:\ BOOLEAN\ is\ True/has_profiler:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e sed -e "s/has_documentation_generation:\ BOOLEAN\ is\ True/has_documentation_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e sed -e "s/has_xmi_generation:\ BOOLEAN\ is\ True/has_xmi_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e sed -e "s/has_dll_generation:\ BOOLEAN\ is\ True/has_dll_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e sed -e "s/\has_signable_generation:\ BOOLEAN\ is\ True/\has_signable_generation:\ BOOLEAN\ is\ False/g" eiffel_env.e >> new_eiffel_env.e move new_eiffel_env.e eiffel_env.e cd $FINALIZATION_DIR clean_project finalize ace.ace tgz_ccode ec if [ ! -e ec.tar.gz ]; then echo Could not finalize a new EiffelStudio CANCEL fi clean_project move ec.tar.gz $EXPORT_DIR/ecfree.tar.gz fi else # FIXME doesn't work. quick_move studio/spec/$ISE_PLATFORM/bin/ec fi remtrace Recompile quick_finalize cd $EIFFEL_SRC/Eiffel/extra/quick_c_compilation clean_project finalize Ace.unix tgz_ccode quick_finalize if [ ! -f quick_finalize.tar.gz ]; then echo Could not finalize a new quick_finalize CANCEL fi clean_project move quick_finalize.tar.gz $EXPORT_DIR remtrace Compiling CD key validator cd $EIFFEL_SRC mkdir tools cd tools exprt -r $DEFAULT_CVS_TAG -d cd_key_validator Src/tools/cd_key_validator cd cd_key_validator/eiffel_studio_52 clean_project finalize ace.unix.ace tgz_ccode setup if [ ! -f setup.tar.gz ]; then echo Could not finalize a new setup CANCEL fi clean_project move setup.tar.gz $EXPORT_DIR