~ubuntu-branches/ubuntu/saucy/nwchem/saucy

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/armci/tcgmsg/sendshar

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2012-02-09 20:02:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120209200241-jgk03qfsphal4ug2
Tags: 6.1-1
* New upstream release.

[ Michael Banck ]
* debian/patches/02_makefile_flags.patch: Updated.
* debian/patches/02_makefile_flags.patch: Use internal blas and lapack code.
* debian/patches/02_makefile_flags.patch: Define GCC4 for LINUX and LINUX64
  (Closes: #632611 and LP: #791308).
* debian/control (Build-Depends): Added openssh-client.
* debian/rules (USE_SCALAPACK, SCALAPACK): Removed variables (Closes:
  #654658).
* debian/rules (LIBDIR, USE_MPIF4, ARMCI_NETWORK): New variables.
* debian/TODO: New file.
* debian/control (Build-Depends): Removed libblas-dev, liblapack-dev and
  libscalapack-mpi-dev.
* debian/patches/04_show_testsuite_diff_output.patch: New patch, shows the
  diff output for failed tests.
* debian/patches/series: Adjusted.
* debian/testsuite: Optionally run all tests if "all" is passed as option.
* debian/rules: Run debian/testsuite with "all" if DEB_BUILD_OPTIONS
  contains "checkall".

[ Daniel Leidert ]
* debian/control: Used wrap-and-sort. Added Vcs-Svn and Vcs-Browser fields.
  (Priority): Moved to extra according to policy section 2.5.
  (Standards-Version): Bumped to 3.9.2.
  (Description): Fixed a typo.
* debian/watch: Added.
* debian/patches/03_hurd-i386_define_path_max.patch: Added.
  - Define MAX_PATH if not defines to fix FTBFS on hurd.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/csh
 
2
 
 
3
if ($#argv < 1) then
 
4
  echo usage: sendshar mail_address_list
 
5
endif
 
6
 
 
7
set stub = tcgmsg.4.04.shar
 
8
 
 
9
# Build up first message
 
10
 
 
11
set msgfile = /tmp/msg.$$
 
12
set tmpfile = /tmp/tmp.$$
 
13
 
 
14
/bin/rm -f $msgfile
 
15
 
 
16
cat > $msgfile << EOF
 
17
  Remove the mail header and trailing mail junk from each of the
 
18
  following files, concatenate them and run the resulting 
 
19
  file thru sh.
 
20
 
 
21
  Robert.
 
22
 
 
23
  Output of wc and sum on each file:
 
24
 
 
25
EOF
 
26
foreach file (../$stub.??)
 
27
  echo $file `sum $file` >> $msgfile
 
28
  wc $file >> $msgfile
 
29
end
 
30
 
 
31
# actually send the stuff
 
32
 
 
33
foreach to ($argv[*])
 
34
 
 
35
  mail -s 'TCGMSG split shar file following' $to < $msgfile
 
36
 
 
37
  foreach file (../$stub.??)
 
38
    echo sending $file to $to
 
39
 
 
40
    echo '-- CUT HERE -- ' > $tmpfile
 
41
    cat $file >> $tmpfile
 
42
    echo '-- CUT HERE -- ' >> $tmpfile
 
43
    mail -s $file $to < $tmpfile
 
44
  end
 
45
 
 
46
end
 
47
 
 
48
/bin/rm -f $msgfile
 
49
/bin/rm -f $tmpfile
 
50