# set dirname=GRASP_1.9.8 cd .. # Make sure that various file permissions are set OK. echo "SETTING FILE PERMISSIONS" # turn off all execute permissions on files find . -type f -exec chmod ugo-x \{\} \; chmod ugo+x InstallGRASP RemoveGRASP chmod ugo+x development_tools/tar_release_script chmod ugo+x src/examples/examples_binary-search/mainscript.*inject chmod ugo+x doc/make_manuals echo "DONE SETTING FILE PERMISSIONS" # Go to the documentation directory, build manuals. echo "BUILDING MANUALS" cd doc ./make_manuals cd .. cd .. # build lists of files to exclude unalias ls echo "BUILDING LISTS OF EXCLUDED FILES" echo $dirname/doc/Figures_source >! $dirname/excludefile echo $dirname/doc/manual.log >> $dirname/excludefile echo $dirname/doc/manual.idx >> $dirname/excludefile echo $dirname/doc/separate_color >> $dirname/excludefile echo $dirname/lib/libgrasp.a >> $dirname/excludefile echo $dirname/excludefile >> $dirname/excludefile echo $dirname/tar_release_script >> $dirname/excludefile echo $dirname/tarfile >> $dirname/excludefile echo $dirname/tarfile.gz >> $dirname/excludefile echo $dirname/SiteSpecific.bruce >> $dirname/excludefile echo $dirname/InstallGRASP.bruce >> $dirname/excludefile echo $dirname/doc/grinder/lgrind >> $dirname/excludefile echo $dirname/doc/grinder/*.o >> $dirname/excludefile ls $dirname/.ln* >> $dirname/excludefile ls $dirname/*/.ln* >> $dirname/excludefile ls $dirname/*/*/.ln* >> $dirname/excludefile ls $dirname/*/*/*/.ln* >> $dirname/excludefile ls $dirname/.nfs* >> $dirname/excludefile ls $dirname/*/.nfs* >> $dirname/excludefile ls $dirname/*/*/.nfs* >> $dirname/excludefile ls $dirname/*/*/*/.nfs* >> $dirname/excludefile ls $dirname/*% >> $dirname/excludefile ls $dirname/*/*% >> $dirname/excludefile ls $dirname/*/*/*% >> $dirname/excludefile ls $dirname/*/*/*/*% >> $dirname/excludefile ls $dirname/lib/*.a >> $dirname/excludefile ls $dirname/src/*/*.o >> $dirname/excludefile # we will NOT exclude the .o files in the src/optimization directory ls $dirname/src/[0-np-z]*/*/*.o >> $dirname/excludefile ls -d $dirname/CVS >> $dirname/excludefile ls -d $dirname/*/CVS >> $dirname/excludefile ls -d $dirname/*/*/CVS >> $dirname/excludefile ls -d $dirname/*/*/*/CVS >> $dirname/excludefile ls $dirname/Makefile >> $dirname/excludefile ls $dirname/*/Makefile >> $dirname/excludefile ls $dirname/*/*/Makefile >> $dirname/excludefile ls $dirname/*/*/*/Makefile >> $dirname/excludefile ls $dirname/*/*/*/*/Makefile >> $dirname/excludefile ls $dirname/core >> $dirname/excludefile ls $dirname/*/core >> $dirname/excludefile ls $dirname/*/*/core >> $dirname/excludefile ls $dirname/*/*/*/core >> $dirname/excludefile ls $dirname/*/*/*/*/core >> $dirname/excludefile ls $dirname/doc/latex.out >> $dirname/excludefile ls $dirname/doc/man2.ps >> $dirname/excludefile ls $dirname/doc/*.aux >> $dirname/excludefile ls $dirname/doc/*.toc >> $dirname/excludefile ls $dirname/doc/grinder/*.o >> $dirname/excludefile ls $dirname/doc/*.brf >> $dirname/excludefile ls $dirname/doc/*.tmp >> $dirname/excludefile ls $dirname/doc/*% >> $dirname/excludefile echo "MAKING TAR FILE" tar cvXf $dirname/excludefile $dirname/$dirname.tar $dirname/InstallGRASP >! tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/RemoveGRASP $dirname/TaskList $dirname/README >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/SiteSpecific $dirname/bin $dirname/data $dirname/doc $dirname/include >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/Examples_SiteSpecific $dirname/lib $dirname/man $dirname/parameters >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/*/*.c $dirname/src/optimization/*/*.o >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/*/*/*.c $dirname/src/examples/*/*.h >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_binary-search/mainscript.*inject >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_binary-search/*.ascii >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_correlation/40m* >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_timefreq/Mer* >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_timefreq/randomseeds >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_timefreq/tfmain.in >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/examples/examples_GRtoolbox/*.m >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/*/*Makefile.tail $dirname/src/*/*/*Makefile.tail >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/optimization $dirname/src/README $dirname/testing >> tar.out tar rvXf $dirname/excludefile $dirname/$dirname.tar $dirname/src/GRtoolbox/mexfiles/*.h $dirname/src/GRtoolbox/*.m >> tar.out cd $dirname echo "GZIPPING (COMPRESSING) TAR FILE" gzip -f $dirname.tar echo "FINISHED WITH THE RELEASE BUILD!"