source: SH_SHM/trunk/localtestbuild.sh @ 1237

Revision 898, 1.2 KB checked in by marcus, 10 years ago (diff)

r406 | walther | 2013-02-07 16:03:35 +0100 (Do, 07. Feb 2013) | 4 Zeilen

  • included analytical formula for local magnitude estimation
  • updated version number
  • improved handling for local test build
  • Property svn:executable set to *
Line 
1#! /bin/bash
2
3# This script copies all changed files to the current SH installation
4# and starts the compilation. So mistakes in recent changes will be
5# visible before version control check-in. Removed files will also be
6# deleted in $SH_ROOT - so be careful while using this script. It might
7# mess up your current installation of SH(M) completely. Of course you
8# need write rights inside $SH_ROOT directory. It's recommended to use
9# it only on a local personal installation tree.
10#
11# This script is far away from being perfect - it's just a helper tool
12# to make life a little easier.
13#
14# Marcus Walther, 18. Aug 2011
15
16svn st | while read status filename ; do
17    # skip blank directories (mostly property changes)
18    [ -d $filename ] && continue
19
20    # skip all files starting with dot (hidden, etc)
21    fs=`basename $filename | cut -b 1`
22    [ "$fs" = "." ] && continue
23
24    # copy files
25    [ "$status" = "?" ] && cp -v $filename $SH_ROOT/$filename
26    [ "$status" = "M" ] && cp -v $filename $SH_ROOT/$filename
27    [ "$status" = "A" ] && cp -v $filename $SH_ROOT/$filename
28
29    # delete files
30    [ "$status" = "D" ] && rm -f $SH_ROOT/$filename
31done
32
33cd $SH_ROOT
34
35tcsh -c make
36
Note: See TracBrowser for help on using the repository browser.