-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-targz.sh
executable file
·37 lines (30 loc) · 872 Bytes
/
make-targz.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
############################################################################
# Copyright (c) 2022-2024 University of Helsinki
# All Rights Reserved
# See file LICENSE for details.
############################################################################
VERSION="$(cat ./VERSION)"
TARGET_DIR=IsoQuant-$VERSION
rm -rf $TARGET_DIR
mkdir $TARGET_DIR
# cleaning .pyc and .pyo
rm -f */*.pyc
rm -f */*.pyo
rm -rf */__pycache__/
rm -f */*/*.pyc
rm -f */*/*.pyo
rm -rf */*/__pycache__/
rm -rf ./tests/out*/
rm -rf ./tests/.config/
cp -r ./src $TARGET_DIR/
cp -r ./tests $TARGET_DIR/
cp -r ./figs $TARGET_DIR/
cp splisoquant.py $TARGET_DIR/
cp README.md $TARGET_DIR/
cp VERSION $TARGET_DIR/
cp LICENSE $TARGET_DIR/
cp changelog.md $TARGET_DIR/
cp requirements.txt $TARGET_DIR/
cp CODE_OF_CONDUCT.md $TARGET_DIR/
tar -pczf $TARGET_DIR.tar.gz $TARGET_DIR
rm -r $TARGET_DIR