File: maketar

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (47 lines) | stat: -rwxr-xr-x 1,443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/sh
#
# Make a tar file of the MPE code, removing the RCS files etc.
#
set -x
#
# Use tar to copy to /tmp
if [ ! -d /tmp/mpecopy ] ; then
    mkdir /tmp/mpecopy
fi
cd /tmp/mpecopy
tar cf - -C /home/MPI/mpich mpe | tar xf -
#
# Update a few files
rm /tmp/mpecopy/mpe/requests.h
cp /home/MPI/mpich/profiling/lib/requests.h /tmp/mpecopy/mpe
rm /tmp/mpecopy/mpe/point.h
cp /home/MPI/mpich/profiling/lib/point.h /tmp/mpecopy/mpe
cp /home/MPI/mpich/include/mpiprof.h /tmp/mpecopy/mpe
cp /home/MPI/mpich/util/tarch /tmp/mpecopy/mpe
#
# Copy the man pages
mkdir /tmp/mpecopy/mpe/man
cp -rp /home/MPI/mpich/man/man4 /tmp/mpecopy/mpe/man/man4
mkdir /tmp/mpecopy/mpe/www
cp -rp /home/MPI/mpich/www/www4 /tmp/mpecopy/mpe/www/www4
#
rm /tmp/mpecopy/mpe/aclocal.m4
cp /home/MPI/mpich/aclocal.m4 /tmp/mpecopy/mpe
# The next copy pulls in versions of mpicc and mpirun that may
# be useful.
cp -rp /home/MPI/class/mpiexmpl/maint/envs /tmp/mpecopy/bin
chmod a+x /tmp/mpecopy/mpe/tarch
#
# Remove the RCS files, old executables, and debris
cd /tmp/mpecopy/mpe
find . \( -name 'RCS' -o -name '*.o' -o -name '#*#' -o \
              -name '*~' -o -name 'mputil.mp*' -o -name Makefile -o \
	      -name makefile -o -name 'PI*' -o -name 'mpirun' -o \
	      -name 'mpif.h' \) -print | \
	sed 's%^%/bin/rm -rf %g' | sh
#
# rebuild the tar file
cd /tmp/mpecopy
tar cf - mpe | gzip > /tmp/mpe.tar.gz
/bin/rm -rf /tmp/mpecopy &
echo "tar file in /tmp/mpe.tar.gz"