forked from ablab/quast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_tar.sh
executable file
·36 lines (30 loc) · 1.04 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
#!/bin/bash
VERSION=`cat VERSION`
NOW=$(date +"%d.%m.%Y %H:%M")
ARCHIVE_NAME=quast-$VERSION.tar.gz
QUAST_FOLDER=quast-$VERSION
SITE_PACKAGES=libs/site_packages
mkdir release
mkdir release/$QUAST_FOLDER
cp -r libs release/$QUAST_FOLDER
cp -r test_data release/$QUAST_FOLDER
cp quast.py release/$QUAST_FOLDER
cp metaquast.py release/$QUAST_FOLDER
cp manual.html release/$QUAST_FOLDER
cp VERSION release/$QUAST_FOLDER
cp LICENSE release/$QUAST_FOLDER
cp CHANGES release/$QUAST_FOLDER
cp README release/$QUAST_FOLDER
cp INSTALL release/$QUAST_FOLDER
echo Build $NOW >> release/$QUAST_FOLDER/VERSION
sh clean.sh release/$QUAST_FOLDER
rm -f release/$QUAST_FOLDER/libs/.gitignore
rm -fr release/$QUAST_FOLDER/quast_results
rm -fr release/$QUAST_FOLDER/$SITE_PACKAGES/*/test
rm -fr release/$QUAST_FOLDER/$SITE_PACKAGES/*/tests
cd release
tar -pczf $ARCHIVE_NAME $QUAST_FOLDER
cd ..
mv release/$ARCHIVE_NAME .
rm -fr release
echo "Archive created: $ARCHIVE_NAME"