#!/bin/csh -f version setenv curr_dir $cwd echo echo Generating a class library in $curr_dir/generated and a file $curr_dir/test-output rm -fr generated >& $curr_dir/test-output echo -n . mkdir generated >>& $curr_dir/test-output echo -n . cp cd.cd generated/cd.cd >>& $curr_dir/test-output echo -n . cp *.pp generated >>& $curr_dir/test-output echo -n . cp *.h generated >>& $curr_dir/test-output echo -n . cp *-input generated >>& $curr_dir/test-output echo -n . cp expected generated >>& $curr_dir/test-output echo -n . cp main.C generated >>& $curr_dir/test-output echo -n . cd generated >>& $curr_dir/test-output echo -n . imake-sample >>& $curr_dir/test-output echo -n . dmkmf >>& $curr_dir/test-output echo -n . make >>& $curr_dir/test-output echo -n . run demeter-input expected >>& $curr_dir/test-output echo -n . #test other tools tree-prop cd.cd >>& $curr_dir/test-output echo -n . xref cd.cd >>& $curr_dir/test-output echo -n . cd-english cd.cd >>& $curr_dir/test-output echo -n . echo " " echo " " setenv RESULT `fgrep SUCCESS $curr_dir/test-output` if ( $RESULT != "SUCCESS" ) then echo "Installation failed." echo "Please check the file $curr_dir/test-output and mail it to demeter@ccs.neu.edu" else echo "Installation is successful\!" endif echo " "