-
Notifications
You must be signed in to change notification settings - Fork 139
/
make-targz.sh
executable file
·45 lines (36 loc) · 1.03 KB
/
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
38
39
40
41
42
43
44
45
#!/bin/bash
############################################################################
# Copyright (c) 2023-2024 SPAdes team
# All Rights Reserved
# See file LICENSE for details.
############################################################################
VERSION="$(cat VERSION)"
: "${TARGET_DIR:=SPAdes-$VERSION}"
rm -rf $TARGET_DIR
SRC_DIR=$TARGET_DIR/src
mkdir -p $SRC_DIR
cp -r src/common $SRC_DIR/
cp -r src/projects $SRC_DIR/
cp -r src/include $SRC_DIR/
cp -r src/cmake $SRC_DIR/
cp -r src/test $SRC_DIR/
cp src/CMakeLists.txt $SRC_DIR/
cp -r ext $TARGET_DIR/ext
cp -r docs $TARGET_DIR/docs
# cleaning .pyc and .pyo
shopt -s globstar
rm -f $TARGET_DIR/**/*.pyc
rm -f $TARGET_DIR/**/*.pyo
rm -fr $TARGET_DIR/**/__pycache__/
cp LICENSE $TARGET_DIR/
cp README.md $TARGET_DIR/
cp VERSION $TARGET_DIR/
cp spades_compile.sh $TARGET_DIR/
cp changelog.md $TARGET_DIR/
cp GPLv2.txt $TARGET_DIR/
cd $TARGET_DIR
touch src/CMakeListsInternal.txt
find . -name ".?*" | xargs rm -r
cd ..
tar -pczf $TARGET_DIR.tar.gz $TARGET_DIR
rm -r $TARGET_DIR