-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathprep_source.sh
executable file
·39 lines (39 loc) · 1.14 KB
/
prep_source.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
#!/usr/bin/env bash
# this must be run into an active git repository
#url=https://github.com/gpertea/stringtie.git
ver=$(fgrep '#define VERSION ' stringtie.cpp)
ver=${ver#*\"}
ver=${ver%%\"*}
pack=stringtie-$ver
echo "preparing $pack.tar.gz"
echo "-------------------"
/bin/rm -rf $pack
/bin/rm -f $pack.tar.gz
mkdir $pack
mkdir $pack/gclib
#cd htslib
#make clean
#/bin/rm -f xlibs config.h lzma bzip2 libdeflate
#cd ..
# getting a clean htslib directory
hts=htslib
/bin/rm -rf $hts.prep
mv $hts $hts.prep
git checkout -- $hts
mv $hts $pack/
mv $hts.prep $hts
# getting a clean SuperReads_RNA directory
srm=SuperReads_RNA
if [[ -d $srm ]]; then
mv $srm $srm.prep
git checkout -- $srm
mv $srm $pack/
mv $srm.prep $srm
fi
gldir=stringtie-$ver/gclib/
cp Makefile LICENSE README.md run_tests.sh stringtie.cpp prepDE.py prepDE.py3 {rlink,bundle,tablemaker,tmerge}.{h,cpp} $pack/
cp ./gclib/{GVec,GList,khashl,GHashMap}.hh ./gclib/GBitVec.h ./gclib/xxhash.h ./gclib/wyhash.h $gldir
cp ./gclib/{GArgs,GStr,GSam,GBase,gdna,codons,gff,GFaSeqGet,GFastaIndex,proc_mem,GThreads}.{h,cpp} $gldir
#cp -r tests_exp_out $pack/
tar cvfz $pack.tar.gz $pack
ls -l $pack.tar.gz