-
Notifications
You must be signed in to change notification settings - Fork 4
/
make_tar.sh
executable file
·51 lines (43 loc) · 1.17 KB
/
make_tar.sh
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
#!/usr/bin/env bash
echo "Did you do 'make opt' instead of 'make'? It will be much faster"
final_dir="inputs"
files="
package.tar.xz
main.exe
liblooperBatch.so
CORE
LinkDef_out_rdict.pcm
goodRunList
cxxopts.h
$(find misc/ -name '*.h' -not -path "*/bck/*" -print)
"
# du -csh $files
# echo "tarring up: ${files}"
mkdir -p $final_dir
# tar -cz --exclude='CORE/data' --exclude='*.cc' --exclude='*.h' --exclude='*.C' --exclude '*.cxx' --exclude-vcs -f $files
XZ_OPT=-9 tar -Jch \
--exclude='CORE/data' \
--exclude='CORE/CMS3_CORE*' \
--exclude='CORE/Tools/dorky' \
--exclude='CORE/Tools/MT2' \
--exclude='CORE/Tools/classfiles' \
--exclude='*run2_50ns*' \
--exclude='*AK8PF*.txt' \
--exclude='*UncertaintySources*txt' \
--exclude='*JECDatabase*' \
--exclude='*Summer16_23Sep2016*V3_*txt' \
--exclude='*PFPuppi*.txt' \
--exclude='*.cc' \
--exclude='CORE*.h' \
--exclude='*.C' \
--exclude '*.cxx' \
--exclude '*.pdf' \
--exclude '*.png' \
--exclude '*.md' \
--exclude '*.pyc' \
--exclude '*.py' \
--exclude-vcs \
-f $files
ls -lh package.tar.xz
mv package.tar.xz $final_dir
echo "I put stuff into $final_dir!"