-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpack.sh
More file actions
executable file
·42 lines (31 loc) · 847 Bytes
/
pack.sh
File metadata and controls
executable file
·42 lines (31 loc) · 847 Bytes
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
#! /bin/bash
# Produces a tarball with mumax binaries
cp -f src/Optimize.inc src/Make.inc
clean_output="rm -rf examples/*.out tests/*.out src/*.mod/tests/*.out"
#make clean && make -j 4 && make test && make -C src/libomf && make -C src/muview && make doc && $clean_output
make clean && make -j 4 && make -C src/libomf && make -C src/muview && make doc && $clean_output
if (( $?==0 )); then
echo build ok;
else
echo failed;
exit;
fi
dir=mumax2
tarball=$dir.tar.gz
rm -rf $dir
mkdir $dir
rm -f $tarball
rm -rf examples/*.out tests/*.out
rm -f test.log
rm -f src/libmumax2/*.o
rm -f src/libomf/*.o
rm -f src/muview/*.o
rm -rf pkg/
files=$(ls | grep -v pack.sh)
cp -rv $files $dir
echo packing into $tarball: $files
rm -rf $tarball.tar.gz
rm -rf $dir/mumax2
tar cv $dir | gzip > $tarball
#rm -rf $dir
cp -f src/Debug.inc src/Make.inc