File: create_dbcsr_tarball.sh

package info (click to toggle)
cp2k 6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 204,532 kB
  • sloc: fortran: 835,196; f90: 59,605; python: 9,861; sh: 7,882; cpp: 4,868; ansic: 2,807; xml: 2,185; lisp: 733; pascal: 612; perl: 547; makefile: 497; csh: 16
file content (82 lines) | stat: -rwxr-xr-x 1,888 bytes parent folder | download | duplicates (3)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash -e

#set -x

TMPDIR=`mktemp -d`
REV=`./build_utils/get_revision_number ../ | sed -e "s/://"`
OUTNAME=libdbcsr_$REV
OUTDIR=$TMPDIR/$OUTNAME

#echo "Create tempdir: " $OUTDIR
mkdir $OUTDIR
cp -a ../COPYRIGHT $OUTDIR

mkdir $OUTDIR/src
rsync -axq \
   --exclude=".*" \
   --exclude="**/preprettify/" \
   --exclude="*.instantiation" \
   --exclude="*.template" \
   --exclude="*.pyc" \
   --exclude="libcusmm.cu" \
   ../src/dbcsr/ $OUTDIR/src/dbcsr

rsync -axq \
   --exclude=".*" \
   --exclude="**/preprettify/" \
   --exclude="*.instantiation" \
   --exclude="*.template" \
   --exclude="*.pyc" \
   --exclude="libcusmm.cu" \
   ../src/acc/ $OUTDIR/src/acc

rsync -axq \
   --exclude=".*" \
   --exclude="**/preprettify/" \
   --exclude="*.instantiation" \
   --exclude="*.template" \
   --exclude="*.pyc" \
   --exclude="libcusmm.cu" \
   ../src/base/ $OUTDIR/src/base

rsync -axq \
   --exclude=".*" \
   --exclude="**/preprettify/" \
   --exclude="*.instantiation" \
   --exclude="*.template" \
   --exclude="*.pyc" \
   --exclude="libcusmm.cu" \
   ../src/mpiwrap/ $OUTDIR/src/mpiwrap


mkdir -p $OUTDIR/tools/build_utils
rsync -axq --exclude=".*" ../tools/build_utils/  $OUTDIR/tools/build_utils/

mkdir $OUTDIR/tools/dbcsr_test/
rsync -axq --exclude=".*" ../tools/dbcsr_test/  $OUTDIR/tools/dbcsr_test/

mkdir $OUTDIR/tools/build_libsmm/
rsync -axq \
   --exclude=".*" \
   --exclude="**/run_*/" \
   --exclude="**/lib/" \
   --exclude="*.out" \
   --exclude="*.o" \
   --exclude="*.mod" \
   ../tools/build_libsmm/  $OUTDIR/tools/build_libsmm/

mkdir $OUTDIR/makefiles
cp -a ../makefiles/Makefile  $OUTDIR/makefiles/

mkdir $OUTDIR/arch/
rsync -axq --exclude=".*" ../arch/  $OUTDIR/arch/

# pack everything into a tar.gz-archive
rm -f $OUTNAME.tgz
tar -cz --directory=$TMPDIR --file=$OUTNAME.tgz $OUTNAME

#clean up
rm -r $TMPDIR

echo "Assembled: " $OUTNAME.tgz
#EOF