#! /bin/csh -f # # Copyright (c) 2004-2005 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 2004-2005 The Trustees of the University of Tennessee. # All rights reserved. # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, # University of Stuttgart. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # set srcdir="`pwd`" set distdir="$srcdir/$1" set OMPI_VERSION="$2" if (-z "$distdir") then echo "Must supply relative distdir as argv[1] -- aborting" exit 1 elif (-z "$OMPI_VERSION") then echo "Must supply version as argv[2] -- aborting" exit 1 endif set start=`date` cat < manfiles #set date="`date '+%B, %Y'`" #cp $srcdir/config/doctext.nroff.def . #foreach file (`cat manfiles` doctext.nroff.def) # sed -e "s/-RELEASEDATE-/$date/g" $file > foo # sed -e "s/-RELEASEVERSION-/$ver/g" foo > bar # rm -f $file # Needed 'cause automake makes hard links, not copies # mv bar $file # rm -f foo #end #rm -f manfiles # # Make all the man pages -- doctext needs to be in your path # JMS: Don't have man pages yet; need to do this at some point # # # Now we need to list all these generated man pages in the Makefile.am # and Makefile.in in man/man3. Ick! # JMS: Will probably need to do this as well. Sigh. # #echo "*** Frobbing Makefile.am and Makefile.in..." #cd ../../man/man3 #set files="`ls MPI_*3 MPIO_*3 XMPI_*3 MPIL_*3`" # # This is unfortunately necessary because $files is too long to do a # single sed search/replace. Ugh. # JMS: Will probably need to do this as well. Sigh. # #echo "*** Adding man files to Makefile.in..." #foreach file ($files) # set name_prefix="`echo $file | cut -c1-4`" # if ("$name_prefix" == "MPI_") then # set letter="`echo $file | cut -c5`" # set div="`expr $letter \> F`" # set line="generated_man_$div" # else # set line="generated_man_other" # endif # echo " - $file / $line" # foreach fix (Makefile.am Makefile.in) # sed -e "s/$line =/$line =$file /" $fix > $fix.new # chmod +w $fix # mv -f $fix.new $fix # chmod -w $fix # end #end #cd ../.. # # Put the release version number in the README and INSTALL files # set files="README INSTALL" echo "*** Updating version number in $files..." foreach file ($files) echo " - Setting $file" if (-f $file) then sed -e "s/OMPI_VERSION/$ver/g" $file > bar mv -f bar $file endif end # # All done # cat <